/nest-pg

Primary LanguageTypeScript

Description

Nest framework TypeScript starter repository.

Estructura del Proyecto

src
└── common
    ├── decorators
    ├── dtos
    ├── filters
    ├── guards
    ├── interceptors
    ├── middleware
    ├── pipes
    ├── common.controller.ts
    ├── common.module.ts
    └── common.service.ts

Enviroments Variables :

PORT=3000
DB_HOST=localhost
DB_PORT=5432
DB_USER=username
DB_PASSWORD=password
DB_NAME=name

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Installation - Docker

# prod
$ docker-compose up -d

# dev
$ docker-compose -f docker-compose.dev.yml up -d

Resources