Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.46 KB

File metadata and controls

64 lines (41 loc) · 1.46 KB

Development Setup Guide

Requirements

Getting Started

  1. Clone the repository and navigate to it:

    git clone <URL>
    cd group_18_project
  2. Make the start script executable:

    chmod +x scripts/start.sh
  3. Set up environment variables:

    Create a .env file in the backend/ directory:

    cp backend/.env.example backend/.env

    For local development, the default DATABASE_URL in .env.example should work with Docker Compose.

    For production (Supabase), update DATABASE_URL in .env with your Supabase session pooler connection string:

    DATABASE_URL=postgresql://user:password@host:port/dbname
    

    Important: 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").

Usage

  1. Start the application:

    ./scripts/start.sh

    Or manually:

    docker compose up -d --build
  2. Access the backend:

  3. Stop the application:

    docker compose down