Example Express with typescript. Using Eslint with AirBnb config, JWT with refresh & access token, Facade design pattern , Sequilize orm, Ajv, Winston logger and use annotation on controller. Also built in with db seeder
- Clone this repo
- do
npm install
- copy
.env.example
to.env
and fill.env
with valid value - prepare the database on your local machine
- run
npm run dev
to run on your local - run
npm run build
to deploy this app
- copy
database.example.json
todatabase.json
and fill based on.env
value - install
db-migrate
&db-migrate-pg
on your local-machinenpm i -g db-migrate && npm i -g db-migrate-pg
- more information visit this
- copy
.env.example
to.env.test
and fill.env
with valid value on test environment - run
npm run test