Skip to content

AndriiDemchenko/nest-js-incode-group

Repository files navigation

InCode Group backend

The current version of the backend utilizes Docker for accelerated development, eliminating the need to manage database versions every time you switch projects. Additionally, it provides easier migration generation with built-in scripts.

Preparing

Install Dependencies

$ npm ci

Install Docker

Please refer to the official Docker documentation for installation instructions: Docker Installation

Configure Environments

  1. Copy the example environment file by executing the following command:
cp environments/example.env environments/.env
  1. Fill in the required environment variables.

Running the Application

# Development mode
$ npm run start

# Watch mode
$ npm run start:dev

# Production mode
$ npm run start:prod

Database Migration

The docker-compose.yml file includes configurations for local, migration, and CI databases.

# Generate a migration based on your changes
$ npm run migration:generate

# Create an empty migration
$ npm run migration:create

# Run migrations for the local and migration databases
$ npm run migration:run

Testing

# Run unit tests
$ npm run test

# Run end-to-end (e2e) tests
$ npm run test:e2e

# Generate test coverage
$ npm run test:cov

Documentation

The API documentation is available via Swagger and can be accessed at http://localhost:3000/docs. Feel free to explore the various endpoints and their functionality.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published