Yara Stock Service

This is the service for managing yara warehouses and products of a given client. You can find a detailed diagram about how it works and what is the database modeling behind it by clicking here or looking to this image bellow:

Yara Warehouse Diagram Image

You can find the GraphQL API playground here: https://yara-stock-service.onrender.com/graphql

If you run to run the service locally, you can follow these instructions bellow.

Installation

$ npm install

Running the app

# 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

TODO - Nice to have:

  • SEED
  • TRANSACTIONS
  • MIGRATIONS
  • VALIDATIONS FACTORY