This repository contains the backend of the Guaradata project. It is responsible for managing the business logic and communication with the database using NestJS, Prisma, and Mongoose. The backend can be configured for both development and production, with Docker support to facilitate dependency management and deployment.
cd backend
npm install
To perform data migrations with Prisma, run the following command in the backend folder:
npx prisma migrate dev --name init
Run the following command to build the Docker project on your local machine from the root folder:
cd..
Add the .env file to the root directory. The directory contains an example .env file (env.example). Build and run:
docker-compose -f docker-compose.dev.yml up --build
npm run start:dev
Run the following command to build the project in Docker for production:
docker-compose up --build