You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# build docker image
$ docker build .# start app (to get container id)
$ docker-compose up
# connect to container
$ docker exec -it {container-id} sh
# OPTIONAL: stops the execution of a script if a command or pipeline has an error
$ set +e
# install packages
$ npm install
# run migrations
$ npm run migration:run
Running the app
# start app
$ docker-compose up
# build image and run app at the same time
$ docker-compose up --build
How to generate and run migrations
# connect to container
$ docker exec -it {container-id} sh
# OPTIONAL: stops the execution of a script if a command or pipeline has an error
$ set +e
# generate migration
$ npm run migration:generate --name={task-name}
# run migration
$ npm run migration:run
How to run tests
# connect to container
$ docker exec -it {container-id} sh
# OPTIONAL: stops the execution of a script if a command or pipeline has an error
$ set +e
# run tests
npm run test