Nest Logo

Run Postgres docker container

docker run -d --name nestjs -p 5436:5432 -e POSTGRES_PASSWORD=postgres -e PGDATA=/var/lib/postgresql/data/pgdata -v <YOUR_LOCAL_PATH>:/var/lib/postgresql/data postgres:15.4

YOUR_LOCAL_PATH ==> please replace this line to your local path where you want to mount postgres data

Run Elastic Database and Kibana

docker-compose -f elastic-compose up -d

Installation

yarn  

Running the app

Running on the terminal

# development
$ yarn run dev

Create a production build

# development
$ yarn run build

RUNNING WITH DOCKER

Run production server

# development
$ yarn run start:prod

Access the docker instance

# Server is running at 

http://localhost:8080/

# Kibana
http://localhost:5601/

Run with docker

docker-compose up -d

Stop docker

docker-compose down

License

Nest is MIT licensed.