This project is a base template for Node.js Rest API applications, using the follow stack:
- TypeScript, ES6,
- Sequelize,
- Postgres,
- Express JS,
- Passport JS with JWT,
- Mocha,
- Chai,
- supertest,
- test-double.
- NodeJS 6.10.2+ Support ES6
- NPM 3.10.10+
- Docker lastest
First create the database postgres inside docker with command:
docker-compose up
The Docker Compose will create the database called ts-api
Inside the project root folder use the command
npm install
npm run compile && npm start
To start the server with ts-node, use the command:
npm run start-dev
npm run comiple && npm run integration-test
npm run compile && npm run integration-coverage
This project is released under the MIT License.