To run the app:
- Install the dependencies:
cd front/
npm install
- Run the frontend:
npm run dev
- Populate the database:
cd back/
npm i
node populate.ts
- Add an API_PORT variable to the .env file to the back folder:
cd back/
echo "API_PORT=PORT" >> .env
- Change the API_BASE_URL in the Api.js in the front folder:
cd front/
const API_BASE_URL = "http://localhost:PORT";
- Run the backend:
cd back/
npm i
docker compose build
docker compose up
- Run the backend:
cd back/
npm run start