This is not a real project, i use this just for learning how to create basic rest api
- docker
- expressjs
- sequelize
- postgresql
- Clone this repo
- Run
docker-compose up --build
- Access on http://localhost:3000
- create database
docker-compose exec api npx sequelize db:create
- run migrate
docker-compose exec api npx sequelize db:migrate
- run rollback to migration
docker-compose exec api npx sequelize db:migrate:undo
- create model and migration
docker-compose exec api npx sequelize model:generate --name <ModelName> --attributes <Attr1>:<Type>,<Attr2>:<Type>
find more command on sequelize-cli repo https://github.com/sequelize/cli