# RUN WITH DOCKER
$ docker compose up
# REBUILD THEN RUN WITH DOCKER
$ docker compose up --build
# NPM
$ npm run start:dev
Rebuild A Docker Compose Image
# REBUILD A SPECIFIC SERVICE IN YAML COMPOSE
$ docker compose build --no-cache <service-name>
Purge Docker
$ docker system prune --all --volumes --force
Override docker permission
$ sudo chmod -R a+rxw node_modules
Seed the database
$ docker compose exec backend npm run seed
Run migrations
$ docker compose exec backend npm run migration:run
Get the hostname of running container (for TablePlus)
$ docker compose exec<service-name> hostname -i
Purge Docker images, containers and volumes
$ docker system prune --all --volumes --force
Create a resource with Nest CLI
$ npx nest g resource <resource-name># Example
$ npx nest g resource users
Working with git
$ git fetch
$ git branch -a
$ git branch feature_management origin/feature_management # reflecting the remote branch for the first time
$ git fetch origin feature_management:feature_management # updating the remote brach