This is a new version of TanyaCapres, an AI-powered assistant for answering questions about Indonesian presidential candidates.
-
Install NodeJS, Python 3.11, and Bun on your machine.
-
Clone this repository.
-
Install dependencies.
-
for ai:
cd ai && pip install -r requirements.txt
-
for api:
cd api && bun install
-
for web:
cd web && bun install
-
-
Define environment variables.
cp api/.env.example api/.env
Variable Description PORT Port for running the server AI_URL URL for AI server (default: http://127.0.0.1:5001) ANTHROPIC_API_KEY Anthropic API key cp web/.env.example web/.env.local
Variable Description VITE_API_URL API URL (default: http://localhost:4001/v1) ANTHROPIC_API_KEY Anthropic API key -
Run in development mode.
-
for ai:
cd ai && python main.py
-
for api:
cd api && bun --watch index.ts
-
for web:
cd web && bun run dev
-
-
Open http://localhost:5173 in your browser.