This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1ZhwVXu_oVueTmZzJOb_DfzPxecReJzkf
Prerequisites: Node.js
-
Install dependencies:
npm install -
Create a
.envfile from the example and add your API key:cp .env.example .env # edit .env and set API_KEY -
Start the backend proxy (optional but recommended for real Gemini calls):
# default port is 4000; to change port set BACKEND_PORT npm run server- If you don't have an API key set, the proxy will return mock previews so the UI still renders.
-
Start the front-end dev server:
npm run dev
Notes
- Do NOT commit real API keys to the repository. Keep them in
.envwhich should be listed in.gitignore. - For production, host the backend (e.g., on a small Node host) and keep the
API_KEYonly on the server.
