/kk-cart

Kuanto Kusta Challenge

Primary LanguageTypeScript

KK Cart API

Description

Nest Kuanto Kusta Challenge. Small API for Cart Shopping.

Installation

  • Better to run using docker:
$ docker-compose up
  • For isolated services:

    • docker-compose up app For NestJs API
  • For manage database:

    • docker-compose up postgres PostgreSQL
    • docker-compose up pgadmin PGAdmin

Running Migrations

  • After initialize, you must to run all db migrations to start to persist data. You can run:
    • docker-compose exec app yarn run migration:run

API Tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov