Your AITutor application has been restructured for easy deployment with separate frontend and backend modules.
aitutor/
βββ backend/ # π FastAPI Backend (Deploy to Render)
β βββ app/ # Application code
β βββ requirements.txt # Python dependencies
β βββ render.yaml # Render configuration
β βββ .env.example # Environment template
β βββ deploy.sh # One-command deployment
β βββ README.md # Backend deployment guide
β
βββ frontend/ # π Next.js Frontend (Deploy to Vercel)
β βββ app/ # React components
β βββ package.json # Node.js dependencies
β βββ vercel.json # Vercel configuration
β βββ .env.example # Environment template
β βββ deploy.sh # One-command deployment
β βββ README.md # Frontend deployment guide
β
βββ src/ # Original structure (still works)
βββ deployment/ # Additional deployment tools
βββ docs/ # Documentation
βββ README.md # Main project guide
cd backend
cp .env.example .env
# Add your OPENROUTER_API_KEY to .env
./deploy.shcd frontend
cp .env.example .env.local
# Add your backend URL to .env.local
./deploy.sh- π₯ One-command deployment:
./deploy.shin each module - π Independent services: Deploy frontend/backend separately
- β‘ Faster builds: Smaller codebases
- π₯ Team collaboration: Frontend/backend teams work independently
- π± Separate scaling: Scale services independently
- π Easy maintenance: Update one service without affecting other
After deployment:
- Backend: https://aitutor-backend.onrender.com
- Frontend: https://aitutor-frontend.vercel.app
- API Docs: https://aitutor-backend.onrender.com/docs
- QUICK_DEPLOY.md: Step-by-step deployment
- MODULAR_DEPLOYMENT.md: Complete modular guide
- backend/README.md: Backend-specific guide
- frontend/README.md: Frontend-specific guide
OPENROUTER_API_KEY=sk-or-v1-your-key-here
PORT=8000
NODE_ENV=productionNEXT_PUBLIC_API_URL=https://aitutor-backend.onrender.com
NODE_ENV=productionBoth modules are production-ready with:
- β Deployment configurations
- β Environment variable templates
- β One-command deploy scripts
- β Individual README guides
- β Health checks
- β Error handling
Choose your deployment option and deploy in minutes! π