cd backend
python -m venv venv
.\venv\Scripts\Activate
pip install -r requirements.txtCreate a .env file inside the backend/ directory.
At a minimum, add:
OPENROUTER_API_KEY=your_openrouter_key
SESSION_SECRET_KEY=some_secret_keyYou'll also need to configure:
- MongoDB credentials
- Cloudinary credentials
Refer to the following files for the required environment variable names:
configurations.pycloudinary.py
uvicorn main:app --reloadThe FastAPI server will start at:
http://localhost:8000
cd frontend
npm installnpm run devThe frontend will start on:
http://localhost:5173
The frontend is already configured to communicate with the FastAPI backend running on http://localhost:8000.