eugene-belkovich / home-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

$ npm install

Build and run in docker

Run application with docker-compose. This command runs database & run backend service

make dev

Run locally

Before run application you need to run mongo database. You can use docker-compose or run mongo locally

npm run start:dev

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

If you want to run api-tests.http in Intellij IDEA or Webstorm IDE run this npm run seed before

Seed

Populate mongo database with test data

$ npm run seed

Format and lint

# format code
$ npm run format

# lint lint rules
$ npm run lint

# lint ts rules
$ npm run ts

About


Languages

Language:TypeScript 92.6%Language:JavaScript 5.6%Language:Makefile 1.4%Language:Dockerfile 0.4%