Skip to content

⚡ 🐈 CRUD with NestJS, MongoDB and Docker for quick setup.

Notifications You must be signed in to change notification settings

santiagodotsh/nest-pokedex

Repository files navigation

Project setup

$ npm install

Config environment

$ # copy .env.template to .env

Start database

$ docker compose up -d

Compile and run the project

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Run SEED

$ http://localhost:3000/api/v2/seed

Production build with Docker

  1. Create .env.prod file.
  2. Fill environment variables.
  3. Execute commands.
# build
$ docker compose -f docker-compose.prod.yaml --env-file .env.prod up --build

# run
$ docker compose -f docker-compose.prod.yaml --env-file .env.prod up

Run tests

# error