Skip to content

kobyzskyi/nest-interview-project

Repository files navigation

Interview Test Project

Installation

$ cp .env.dist .env
$ npm ci

Running the app

# docker
$ docker-compose up -d

# 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

Service requirements

  1. There is CRUD for categories
  2. There is CRUD for products
  3. If a category is created without a name it should be generated automatically with the pattern "Unnamed category {next number}"
  4. There is an endpoint to get all products from a category
  5. There is an endpoint to add bulk products to a category
  6. It's not possible to remove a category if it has products
  7. Every product type store his own data structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published