Rest api with express typescript ready for production
- Database migration with sequelize ORM
- Logging with morgan middleware express
- Compression (compress response bodies for all request)
- Unit Testing with jest
- Pm2 configuration
Configuration of access to the database in src/config/config.json
$ npx sequelize-cli db:migrate
# install dependencies
$ npm install
# run for development
$ npm run dev
# install dependencies
$ npm install
# run with pm2
$ npm run start
# run testing with jest
$ npm run testing
Copyright © 2019 by Muhammad Zahidin Nur