Skip to content

Back-end repository of the application of a cargo and cargo transportation aggregator company.

Notifications You must be signed in to change notification settings

m0rk4/cargon-backend

Repository files navigation

Cargon backend repository

Installation

$ npm install

Run DB

$ docker-compose -f docker-compose-local.yml up -d postgres 

Run Test DB

$ docker-compose -f docker-compose-local.yml up -d postgres-test 

Setup DB (Apply Prisma migrations)

$ prisma migrate deploy

If you want to update the database structure, apply changes to prisma.schema then run

$ prisma migrate dev --name ${NAME_OF_THE_MIGRATION} 

To clear the database and fill it with the test data run

$ prisma migrate reset 

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
Before running tests make sure test container is up.

$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

Back-end repository of the application of a cargo and cargo transportation aggregator company.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •