NestJS backend container with POSTGRES database container Docker and docker-compose need to be installed.
docker version
docker -v
docker-compose version
docker-compose -v
Download & install system Dowload from github
git clone https://github.com/kunnoh/chatAPI.git
Start the system
- This will run postgres image and start app locally with hot reloading.
- To run app in development mode, you have to change
.env
DB_HOST
to beDB_HOST=localhost
make dev
- This will run both postgres and app in different docker containers.
- To run app in production mode, you have to change
.env
DB_HOST
to beDB_HOST=db
make prod
show app logs show app logs in production mode
make logs-app
Restart the system Restart the system
make restart