This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1d7i3IGmBg97nkpOvH3PWLcuYFF0p4C52
Prerequisites: Node.js
-
Install dependencies:
npm install -
Create a
.envfile at the project root with:GEMINI_API_KEY=your_api_key_hereYou can copy from
.env.exampleif present. -
Run the app:
npm run dev
- Never commit your real API keys. The repository
.gitignoreexcludes.envfiles and build outputs. - Vite loads environment variables and injects them at build time; the code reads
process.env.GEMINI_API_KEY. - For CI/CD or hosting, configure
GEMINI_API_KEYin your platform's secret manager (e.g., Vercel/Netlify project env vars). - If a key was ever committed in the past, rotate it immediately in Google AI Studio and force-push removal if necessary.
