Skip to content

doubleAgent-ohtu/doubleAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doubleAgent

CI codecov

Find it online: https://double-agent-ohtuprojekti-staging.ext.ocp-prod-0.k8s.it.helsinki.fi/

DoubleAgent Monorepo

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.


1. Docker-compose Development Setup (new & preferred)

Docker-compose makes development easier and faster.

Prerequisites

  • Docker & docker-compose installed
  • .env file in the backend/ folder containing your OpenAI API key

To create the .env file:

cd backend
touch .env

Add the following line to .env:

OPENAI_API_KEY=your_secret_key

Running

In the project root simply run:

docker-compose up --build

Tip: After the first run you can leave out the "--build" flag (faster initialization)

2. Running tests

To check the test run commands:

Frontend:

cd frontend
npm run test

Backend:

cd backend
pytest

3. Notes

Docker-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.

About

Software project fall-2025

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6