Skip to content

High-performance Django/Python backend for a real-time AI Voice Platform, leveraging GCP services for scalability and reliability.

Notifications You must be signed in to change notification settings

elaraby3705/ai-voice-platform-backend

Repository files navigation

AI Voice Platform Backend

Project Overview

This repository contains the backend for an AI Voice platform. The backend handles:

  • Real-time voice sessions with LiveKit
  • User authentication and management
  • Project and session CRUD operations
  • Scalable cloud deployment (GCP / AWS)
  • Performance optimizations and caching

Tech Stack:

  • Backend: Python, Django, Django REST Framework
  • Database: PostgreSQL
  • Caching & Async: Redis, Cloud Pub/Sub
  • Cloud / Deployment: GCP (Cloud Run, Cloud SQL, Memorystore), AWS (S3, Lambda)
  • Realtime / Voice: LiveKit
  • Testing: Django TestCase, DRF APITestCase

Milestones & Roadmap

Milestone Due Date Goal
M1: Core Setup & Authentication 2025-11-18 Setup Django project, PostgreSQL, User/Auth endpoints, initial unit tests
M2: Project & CRUD API 2025-11-24 Implement Project & VoiceSession models and REST APIs
M3: LiveKit & Session API 2025-11-29 Integrate LiveKit, generate access tokens, create session endpoints
M4: GCP Infrastructure Prototype 2025-12-04 Deploy to Cloud Run, connect Cloud SQL & Redis, setup CI/CD
M5: Performance & Async 2025-12-10 Optimize APIs, caching, async tasks, unit tests, documentation cleanup

Issues Structure

Issue types used in this project:

  • FEAT – New feature / endpoint / integration
  • TASK – Task, setup, test, or administrative work
  • CHORE – Routine maintenance, cleanup, or documentation
  • BUG – Fix a functional bug

Each milestone has associated issues, e.g.:

M1: Core Setup & Authentication

  • [CHORE] Initialize Django project & settings
  • [CHORE] Configure local PostgreSQL database
  • [FEAT] Implement User Model & Auth endpoints (Register, Login, Token Refresh)
  • [TASK] Write unit tests for all Auth views
  • [CHORE] Initial Cloud Run deployment template

(Subsequent milestones follow a similar structure.)


Setup Instructions

  1. Clone the repository
git clone https://github.com/<your-username>/voice_ai_api.git
cd voice_ai_api
  1. Create virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Environment variables (.env example)
DATABASE_URL=postgres://user:password@localhost:5432/voice_ai
SECRET_KEY=<your-secret-key>
DEBUG=True
  1. Run migrations
python manage.py migrate
  1. Run server
python manage.py runserver

Contribution Guidelines

  • Use meaningful branches:
    • feature/, task/, chore/
  • Follow Conventional Commits:
    • feat:, fix:, chore:, task:
  • Link PRs to issues & milestones

Testing

python manage.py test

Minimum 90% coverage required.


License

Hammad .

About

High-performance Django/Python backend for a real-time AI Voice Platform, leveraging GCP services for scalability and reliability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published