This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1Aj4IUmCJL4CAcQLuF9APd2d9sfLiEsPy
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
Backend service lives in backend/.
cd backendcp .env.example .env(or create.envmanually on Windows)npm install- Setup PostgreSQL and run migrations (see
backend/README.md) npm run dev(API)npm run dev:worker(export worker)
Set these in a frontend .env.local when needed:
VITE_API_BASE_URL=http://localhost:4000/api/v1
VITE_DEV_USER_ID=00000000-0000-4000-8000-000000000001
VITE_GOOGLE_OAUTH_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
VITE_GOOGLE_OAUTH_REDIRECT_URI=http://localhost:3000Deployment assets are in deploy/.
- Copy env file:
cp deploy/.env.server.example deploy/.env.server
- Update secrets and provider keys in
deploy/.env.server. - Start DB and apply migrations:
docker compose -f deploy/docker-compose.server.yml --env-file deploy/.env.server up -d postgres docker compose -f deploy/docker-compose.server.yml --env-file deploy/.env.server --profile tools run --rm migrator
- Start app services:
docker compose -f deploy/docker-compose.server.yml --env-file deploy/.env.server up -d backend worker frontend
Detailed guide: deploy/README.md.
