Skip to content

An AI-powered assistant for answering questions about Indonesian presidential candidates

License

Notifications You must be signed in to change notification settings

mgilangjanuar/tanyacapres-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TanyaCapres 2.0

This is a new version of TanyaCapres, an AI-powered assistant for answering questions about Indonesian presidential candidates.

Getting Started

  1. Install NodeJS, Python 3.11, and Bun on your machine.

  2. Clone this repository.

  3. Install dependencies.

    • for ai:

      cd ai && pip install -r requirements.txt
    • for api:

      cd api && bun install
    • for web:

      cd web && bun install
  4. 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
  5. 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
  6. Open http://localhost:5173 in your browser.

About

An AI-powered assistant for answering questions about Indonesian presidential candidates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published