After cloning the main repository, you will need to install the dependencies for both the backend and the frontend.
First, clone the repository:
git clone <repository-url>
cd <repository-name>The subprojects are versioned as submodules in this repository. To download the full content, run the following command:
git submodule update --init --recursiveThe backend uses NestJS and Prisma as the ORM to interact with the database. Follow the steps below to set it up:
Navigate to the backend folder and install the dependencies:
cd backend/
npm installRename the .env.example file to .env.
To ensure the database is up to date, run the migrations and seed:
npx prisma migrate devIf the seed does not run automatically, you can execute it manually:
npx prisma db seedThe frontend uses Vite for development. Follow the steps below to set it up:
Navigate to the frontend folder and install the dependencies:
cd frontend/
npm installIf you are using a Mac with ARM architecture (Apple Silicon), you may need to follow this procedure to fix optional dependency issues:
- Delete the
node_modulesfolder and thepackage-lock.jsonfile. - Clear the npm cache using
npm cache clean --force. - Reinstall the dependencies with
npm install.
To run the backend server in development mode:
cd backend
npm run start:devTo run the frontend server in development mode:
cd frontend
npm run dev