Skip to main content

Local Development

Take care

First, create your ".env" file. Then, you can follow the steps below.

Redis Tips

It is possible to connect local redis with Docker in your local environment for testing purposes. Learn more

Install the npm packages for the service requirements.

$ npm install

You can run the project with one of the following commands.

Development

$ npm run start

Watch mode

$ npm run start:dev

Production mode

$ npm run start:prod

Redis Run With Docker

To observe the redis, you can install with the following command.

$ docker-compose up -d

Running Tests

There are unit and integration tests within the service, which are written using NestJS's built-in testing framework. You can run the tests using the following commands.

Unit tests

$ npm run test

E2e tests

$ npm run test:e2e

Test coverage

$ npm run test:cov