- Docker - Installation Guide
-
Clone the repository and navigate to it:
git clone <URL> cd group_18_project
-
Make the start script executable:
chmod +x scripts/start.sh
-
Set up environment variables:
Create a
.envfile in thebackend/directory:cp backend/.env.example backend/.env
For local development, the default
DATABASE_URLin.env.exampleshould work with Docker Compose.For production (Supabase), update
DATABASE_URLin.envwith your Supabase session pooler connection string:DATABASE_URL=postgresql://user:password@host:port/dbnameImportant: You must use the session pooler URL (not the direct connection URL) for Supabase. You can find your Supabase connection parameters in the Supabase dashboard under Project Settings > Database. Look for the "Connection string" section and select "Session mode" (not "Transaction mode" or "Direct connection").
-
Start the application:
./scripts/start.sh
Or manually:
docker compose up -d --build
-
Access the backend:
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
- Frontend: http://localhost:3000
-
Stop the application:
docker compose down