Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 1.21 KB

README.md

File metadata and controls

80 lines (52 loc) · 1.21 KB

Test task

Description

Nestjs framework test task

Specification

You can read the specification here

Requirements

Installation

Installing dependencies (if without Docker)

npm install

Setting dotenv values

  1. Copy .env.example as .env file
  2. Set values ​​in .env based on environment specifics (nothing needs to be changed if using Docker Compose)

Running the app with Docker Compose

  1. Up Docker Containers

    docker-compose up -d
  2. Run DB migrations

    docker compose run api npm run typeorm:run-migrations

Running the app

# run migrations
$ npm run typeorm:run-migrations

# development
$ npm run start

# watch mode
$ npm run start:dev

# debug 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