- node js express
- db-migrate
- postgresql
- grunt
- Clone
- Copy .env.example -> .env
- Modify .env
- Intall node_modules
$ docker build images/node --tag lms_node
$ docker run --rm -w /home/node/app -v "$(pwd)/api:/home/node/app" lms_node npm i
- RUN docker compose (using -d to run in the background)
$ docker-compose up
- Check with open in the browser http://host:port
- Create DB migration
$ docker exec -it lms_api db-migrate create <migration-name>
- Then edit api/migrations files
- Migrate database
$ docker exec -it lms_api db-migrate up
for reference follow this one https://www.npmjs.com/package/db-migrate https://db-migrate.readthedocs.io/en/latest/Getting%20Started/installation/