Skip to content

Local Development Setup

Prerequisites

  • Python 3.9 or 3.10
  • A Supabase Project (URL + Anon Key)
  • A Pinecone Index (curriculum-1536)
  • OpenAI API Key

Setup Steps

  1. Clone & Environment:

    git clone <repo_url>
    cd BacMR
    cp .env.example .env
    # Fill in the .env with your keys
    

  2. Virtual Environment:

    python -m venv venv
    source venv/bin/activate  # macOS/Linux
    # or venv\Scripts\activate # Windows
    pip install -r requirements.txt
    

  3. Run Application:

    uvicorn app.main:app --reload
    

  4. Verify: Open http://localhost:8000/health in your browser.

Database (Supabase) Setup

If starting with a fresh Supabase project: 1. Go to the SQL Editor in Supabase. 2. Paste the contents of db/bootstrap.sql and run. 3. This will create all tables and indexes.

Back to Index