This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/b86ade05-8111-43d7-bc24-f02052ffbe21
Prerequisites: Node.js (>=16)
Steps to run the project locally:
-
Clone the repository
git clone <repo_url> cd <repo_folder>
-
Copy the example env file to create your local env file
cp .env.example .env.local
-
Add your API keys to
.env.local(backend-only secrets)- For Gemini:
GEMINI_API_KEY=your_gemini_key_here - For OpenAI-compatible usage:
OPENAI_API_KEY=your_openai_key_here - Do NOT use
NEXT_PUBLIC_or other frontend-prefixed names for secret keys.
- For Gemini:
-
Install dependencies
npm install
-
Run the app
npm run dev
npm run dev:all
Notes:
- Never commit real API keys. Keep them only in
.env.localand ensure it is ignored by git. - The backend reads
process.env.OPENAI_API_KEY(and will fall back toGEMINI_API_KEYin this project). If the key is missing, the server logs a clear error and returns a JSON error response instead of crashing. - Check the backend health endpoint at
http://localhost:5000/healthwhen running locally.
