Skip to content

mcholl85/TodoMVC-NestJS

Repository files navigation

Nest Logo

Description

A Todo backend application with NestJS using :

Installation

Clone the repository : git clone https://github.com/mcholl85/TodoMVC-NestJS.git

Switch to the repo folder : cd TodoMVC-NestJS

Install dependencies : npm install

Create the environment file :

  • docker.env
    POSTGRES_USER=admin
    POSTGRES_PASSWORD=admin
    POSTGRES_DB=nestjs
    PGADMIN_DEFAULT_EMAIL=admin@admin.com
    PGADMIN_DEFAULT_PASSWORD=admin
    
  • .env POSTGRES_HOST=localhost POSTGRES_PORT=5432 POSTGRES_USER=admin POSTGRES_PASSWORD=admin POSTGRES_DB=nestjs PORT=5000 Start the containers : docker-compose up

Running the app

# development

npm  run  start



# watch mode

npm  run  start:dev



# production mode

npm  run  start:prod

Test

# unit tests

npm  run  test



# e2e tests

npm  run  test:e2e



# test coverage

npm  run  test:cov