SimpliEarn is a full-stack app for earnings-call analysis:
- Frontend: Next.js app (
frontend) with Supabase auth - RAG API: FastAPI service (
RAG) for transcript chat + summaries - Sentiment API: FastAPI service (
sentiment) for YouTube transcription/sentiment pipeline
- Python 3.9+ (3.11 recommended)
- Node.js 18+ and npm
yt-dlpinstalled (brew install yt-dlpon macOS)
Create these env files before running locally:
RAG/.envOPENAI_API_KEYSUPABASE_URLSUPABASE_KEY(service role)
sentiment/.envSUPABASE_URLSUPABASE_KEY(service role)ASSEMBLYAI_KEY
frontend/.env.localNEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEY(required for delete-account API route)
Use the .env.example files where available.
From project root:
python3 -m venv venv
source venv/bin/activate
pip install -r RAG/requirements.txt
pip install -r sentiment/requirements.txtThen install frontend packages:
cd frontend
npm install
cd ..Start each service in a separate terminal.
- RAG API (port 8000)
source venv/bin/activate
cd RAG
uvicorn api_chatbot:app --reload --host 0.0.0.0 --port 8000- Sentiment API (port 8001)
source venv/bin/activate
cd sentiment
uvicorn api:app --reload --host 0.0.0.0 --port 8001- Frontend (port 3000)
cd frontend
npm run devOpen http://localhost:3000.
For a concise list of what changed (home YouTube worker, AssemblyAI options, frontend library fixes) and a step-by-step deploy checklist (Supabase, Cloud Run, Vercel, home worker), see docs/CHANGES_AND_DEPLOYMENT.md.
Run these SQL/setup docs in Supabase before testing auth/settings:
docs/supabase_profiles_migration.sqldocs/supabase_avatars_storage.sqldocs/AUTH_IMPLEMENTATION_STEPS.mddocs/SUPABASE_SETTINGS_SETUP.md
- Full local setup guide:
LOCAL_SETUP.md - Integration notes:
INTEGRATION_GUIDE.md - Backend deployment (Cloud Run):
docs/BACKEND_DEPLOYMENT_GUIDE.md– How to add new backend functions and deploy to Cloud Run
singular driver script coming soon