Find it online: https://double-agent-ohtuprojekti-staging.ext.ocp-prod-0.k8s.it.helsinki.fi/
This repository contains a FastAPI backend and a React + Vite frontend in a monorepo setup.
This README explains how to run the project manually during development and also how to test using Docker Compose.
Docker-compose makes development easier and faster.
- Docker & docker-compose installed
.envfile in thebackend/folder containing your OpenAI API key
To create the .env file:
cd backend
touch .envAdd the following line to .env:
OPENAI_API_KEY=your_secret_keyIn the project root simply run:
docker-compose up --buildTip: After the first run you can leave out the "--build" flag (faster initialization)
To check the test run commands:
Frontend:
cd frontend
npm run testBackend:
cd backend
pytestDocker-compose now supports hot-reloading for both back- and frontend.
It is still possible to run the program old fashioned way of starting backend and frontend in separate terminals, but it is no longer recommended.