eureka-educate is a simple api endpoint for education application built with Node.js, Express Js as a framework of Node.js. Which has features.
- NPM or Yarn as package manager.
- Node.js installed on the local machine
- PostgreSQL intalled on the local machine
-
Clone this repository:
git clone https://github.com/rifanid98/eureka-educate
-
Start PostgreSQL
-
Create eureka_educate database
-
Database configuration: Create .env file, and insert this env variables to .env file
- DB_HOST_LOCAL=localhost
- DB_USER_LOCAL=postgres
- DB_PASS_LOCAL=postgres
- DB_NAME_LOCAL=eureka_educate
- DB_PORT_LOCAL=5432
- Type and run this command
npm run migrate
oryarn migrate
to start the database migration.
-
Run the Unit Test to ensure that programs can run well
- Type and run this command
npm run test
oryarn test
to start the unit test.
- Type and run this command
-
Start the server:
- Open root project folder with command line (terminal, linux. cmd, windows. etc.)
- Type and run this command
npm install
oryarn install
to install required dependencies. - Type and run this command
npm run tsc
oryarn tsc
to compile typescript code into compiled javascript code. - Type and run this command
npm run dev
oryarn dev
to start the server. - Make sure there are no other processes that use port 5000
-
Run app with api testing tools like postman, etc. on http://localhost:5000/eureka-educate/
- Migration
- CRUD
- CORS allowed
- Unit Test
- Node.js - JavaScript runtime environment
- Express.js - Node.js framework
- PostgreSQL - Database
- Sequelize - ORM (Object Relational Mapping)
- TypeScript - Superset of JavaScript.
This project is licensed under the MIT License - see the LICENSE file for details
Thanks to Daniel Saputra for the readme layout.