Prerequisites¶
Required for All Users¶
Docker and Docker Compose¶
Docker is required to run the full application stack.
Verify installation:
AI Provider Setup¶
The application uses Google Gemini for document analysis and image generation. Choose one:
Option A: Vertex AI (Production / Recommended)¶
Uses GCP service account authentication — no API key needed.
- Create or select a Google Cloud project
- Enable the Vertex AI API
- Set
GEMINI_USE_VERTEXAI=truein.env - For local dev, use service account impersonation
Option B: REST API Key (Quick Start / Development)¶
- Go to Google AI Studio
- Click "Get API key"
- Copy the key and set
GOOGLE_CLOUD_API_KEYin.env - Set
GEMINI_USE_VERTEXAI=false
Required for Local Development¶
If you want to run services without Docker:
Python 3.10+¶
UV (Python Package Manager)¶
UV provides 75x faster package installation than pip.
Node.js 18+¶
Download from nodejs.org
pnpm (JavaScript Package Manager)¶
pnpm provides 5-10x faster installs than npm.
Optional Tools¶
PostgreSQL Client¶
For direct database access:
Graphviz¶
For generating workflow diagrams:
Terraform¶
For GCP infrastructure deployment:
Google Cloud CLI¶
For GCP deployment and management:
Development Environment¶
Recommended VS Code Extensions¶
- Python (Microsoft)
- Pylance
- ESLint
- Tailwind CSS IntelliSense
- Docker
- GitLens
Recommended Settings¶
Create .vscode/settings.json:
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"python.defaultInterpreterPath": "./backend/.venv/bin/python",
"python.formatting.provider": "black",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000
}
Verification Checklist¶
Run these commands to verify your setup:
# Docker
docker --version # Should show Docker version
docker compose version # Should show Compose version
# Python (for local dev)
python3 --version # Should show 3.10+
uv --version # Should show UV version
# Node.js (for local dev)
node --version # Should show 18+
pnpm --version # Should show pnpm version