Skip to content
/ EXTYPE Public

♻️ Rest api express with typescript boilerplate

Notifications You must be signed in to change notification settings

zahidin/EXTYPE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♻️ Express Typescript Boilerplate

Rest api with express typescript ready for production

Feature

  • Database migration with sequelize ORM
  • Logging with morgan middleware express
  • Compression (compress response bodies for all request)
  • Unit Testing with jest
  • Pm2 configuration

Running Migrations

Configuration of access to the database in src/config/config.json

$ npx sequelize-cli db:migrate

Run For Devlopment

# install dependencies
$ npm install
# run for development
$ npm run dev

Run With PM2

# install dependencies
$ npm install
# run with pm2
$ npm run start

Run Unit Testing

# run testing with jest
$ npm run testing

Copyright © 2019 by Muhammad Zahidin Nur

About

♻️ Rest api express with typescript boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages