Large Educational platform of cameroon
# Giantect Empire AI Engineering Bootcamp - Backend API
Production-ready FastAPI backend for an interactive **Anthropic-style AI Engineering Educational Platform**.
## Features
- π **Authentication & RBAC**: JWT registration, login, and protected routes.
- π€ **Live LLM Streaming (Anthropic Claude 3.5 Sonnet / Gemini)**: Server-Sent Events (SSE) endpoint to stream prompt responses in real-time to the frontend prompt workbench.
- π§ͺ **Exercise & Evaluation Engine**: Rule-based matching & LLM-as-a-Judge grading system.
- π **Course & Lesson Engine**: Hierarchical Course -> Module -> Lesson -> Exercise management.
- π³ **Cohort & Payments**: Multi-currency support (Stripe & Local Mobile Money XAF).
---
## π Quick Start (Local Setup)
### 1. Prerequisites
- Python 3.11+
- Docker & Docker Compose (for PostgreSQL and Redis)
### 2. Environment Configuration
Copy `.env.example` to `.env`:
```bash
cp .env.example .env
```
### 3. Start Database Services
```bash
docker compose up -d
```
### 4. Setup Python Virtual Environment & Install Dependencies
```bash
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On Mac/Linux:
source .venv/bin/activate
pip install -r requirements.txt
```
### 5. Run the Server
```bash
uvicorn app.main:app --reload --port 8000
```
Open your browser at:
- **Interactive OpenAPI Documentation (Swagger UI)**: `
localhost`
- **Alternative ReDoc**: `
localhost`
---
## π€ Hand-off to Frontend Colleague
Give your frontend colleague the following details:
- **API Base URL**: `
localhost`
- **Swagger Docs**: `
localhost` (they can test all endpoints live here!)
- **SSE Stream Endpoint**: `POST /api/v1/playground/stream-prompt` (Pass `system_prompt`, `user_prompt`, `model_name`)