Skip to content

Raizerz/code-test-nest

Repository files navigation

Documentation

CARS API SERVICE

Table of Contents

Getting started

Preparing

  • Create .env and .env.test config files inside root directory:
cp .env.example .env && cp .env.test.example .env.test
  • Run yarn install command.

Development

Start docker container for PostgreSQL DB:

npm run docker-middleware-dev

After that, you can serve the app with yarn start command.

Production

Run docker containers with following command:

docker-compose up

Tests

  • To run unit tests, run yarn test command.
  • To run e2e tests, you must be sure that docker container for PostgreSQL was started in development mode (see development section above). After that, test DB will be createad for e2e purposes. You can start e2e tests by yarn test:e2e command.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published