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.
$ npm ci
Please refer to the official Docker documentation for installation instructions: Docker Installation
- Copy the example environment file by executing the following command:
cp environments/example.env environments/.env
- Fill in the required environment variables.
# Development mode
$ npm run start
# Watch mode
$ npm run start:dev
# Production mode
$ npm run start:prod
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
# Run unit tests
$ npm run test
# Run end-to-end (e2e) tests
$ npm run test:e2e
# Generate test coverage
$ npm run test:cov
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.