Skip to content

AbanobNageh/action-tracker

Repository files navigation

Description

A project created using the Nest framework. This project was created as a backend coding challenge.

Project structure

This project consists of the following modules:

  1. Actions module: Contains endpoints and logic directly related to actions.
  2. Core-data module: Contains classes that represent entities in the system.
  3. Core-utils module: Contains common helper functions used throughout the system.
  4. Database module: Contains database implementation and data-source files used to access different data in the system.
  5. Users module: Contains endpoints and logic directly related to the users.

Project setup

  1. Install dependencies:
$ npm install
  1. Add a .env file to the project's root directroy with the following ENVs:
# Controls the type of database used. Only local is usable.
DATA_SOUCE_TYPE=local
# Control the solution for getting the referral index for users. Only graph is usable.
REFERRAL_DATA_SOURCE_TYPE=graph

Compile and run the project

# development
$ npm run start

# watch mode
$ npm run start:dev

Run tests

# unit tests
$ npm run test

# unit tests coverage
$ npm run test:cov

# e2e tests
$ npm run test:e2e

# e2e tests coverage
$ npm run test:e2e:cov

Test endpoints manually.

You will find a postman collection inside the postman folder which can be used to test the project's endpoints.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published