gRPC API pet project built on top of NestJS using DDD, CQRS, MikroORM and PostgreSQL
pnpm install
- Add an .env file based on .env.example
We need a PostgreSQL instance to run the project. It's necessary to configure the environment variables for this database in the .env file. This project can also be launched with Docker Compose, which already includes the required database instance.
This repository uses MikroORM and its migration system. To apply the migrations, you need to run the following command:
npx mikro-orm migration:up
You can start the app in development mode:
pnpm start:dev
Or in production mode:
- First, You need to build code:
pnpm build
- Then, You can start app:
pnpm start:prod
To run the current repository using Docker Compose, follow these steps:
- Build images
docker compose build
- Run services
docker compose up
You can run test of this project:
pnpm test