EduBuilder is an Educational AI Platform built with FastAPI (backend) and Streamlit (frontend), powered by Supabase and Gemini API.
Follow these steps to get the project running locally on a Windows machine.
- Python 3.8+ installed on your system.
- Git installed.
- A Supabase project with your database credentials.
- A Google Gemini API key.
git clone <your-repo-url>
cd EduBuilderIt is recommended to use a virtual environment to manage dependencies:
python -m venv venv
.\venv\Scripts\activate(You should see (venv) appear at the start of your terminal prompt)
With your virtual environment activated, install the required packages:
pip install -r requirements.txt- Copy the example environment file to create a new
.envfile:copy .env.example .env
- Open the
.envfile in your editor and fill in your Supabase credentials and Gemini API key:SUPABASE_URL=your_supabase_project_url SUPABASE_KEY=your_supabase_anon_key GEMINI_API_KEY=your_gemini_api_key
(Optional: include initial admin credentials if your .env requires it).
You will need two separate terminal windows (both originating from the project directory with the virtual environment activated) to run the backend and frontend simultaneously.
# Ensure your virtual environment is activated
.\venv\Scripts\activate
# Start the Uvicorn dev server
uvicorn backend.main:app --reloadThe backend API and its interactive Swagger documentation will be available at http://localhost:8000/docs.
# Open a new terminal in the EduBuilder folder
# Activate the virtual environment
.\venv\Scripts\activate
# Start the Streamlit app
streamlit run frontend\app.pyA new tab will automatically open in your default browser for the Streamlit application, typically at http://localhost:8501.