- docker
- node.js
- open your terminal, cd to this folder
- copy and rename
.env.example
to.env
and config it - build mysql:
docker-compose up -d
- install node.js modules:
npm i
- run db migration:
node_modules/.bin/sequelize db:migrate
- start server:
npm start
- test on swagger: http://localhost:3000/swagger-html
- terminate the server:
ctrl+c
- mysql service:
docker-compose stop && docker-compose down
- drop migration:
node_modules/.bin/sequelize db:migrate:undo:all