AI-powered civic education for Indian voters. Understand elections, register to vote, and test your knowledge.
Built for PromptWars Virtual Hackathon using Google Antigravity IDE + Gemini AI.
| Feature | Description |
|---|---|
| 🗓️ Election Timeline | Visual 6-phase guide to how India conducts general elections |
| 📋 Voter Guide | Step-by-step voter registration walkthrough with official ECI links |
| 💬 Ask VoteWise | AI chat powered by Gemini — ask anything about Indian elections |
| 🧠 Civic Quiz | AI-generated MCQ quiz with instant grading and explanations |
Frontend
- React 19 + Vite 8
- Tailwind CSS v3
- React Router DOM
Backend
- Python FastAPI
- Google GenAI SDK (
google-genai) - Uvicorn + python-dotenv
AI
- Google Gemini 2.5 Flash Lite
- System-prompted civic educator persona
- AI quiz generation + grading
Built With
- Google Antigravity IDE (agentic AI coding)
- Node.js 18+
- Python 3.12+
- Google Gemini API key (free at ai.google.dev)
cd backend
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
# create .env
cp .env.example .env
# add your GEMINI_API_KEY to .env
uvicorn main:app --reload
# runs on http://localhost:8000cd frontend
npm install
# create .env
cp .env.example .env
# VITE_API_URL=http://localhost:8000
npm run dev
# runs on http://localhost:5173votewise/
├── backend/
│ ├── main.py # FastAPI routes
│ ├── gemini.py # Gemini AI integration
│ ├── election_data.py # India election content
│ └── requirements.txt
├── frontend/
│ ├── src/
│ │ ├── pages/ # Timeline, VoterGuide, Chat, Quiz
│ │ ├── components/ # Navbar, StepCard
│ │ └── lib/api.js # API layer
│ └── vite.config.js
└── project-docs/ # Architecture, coding rules, context
India has one of the world's most complex election systems — 543 Lok Sabha constituencies, multi-phase voting, EVMs, VVPAT, Model Code of Conduct, and millions of first-time voters every election cycle who don't know where to start.
VoteWise makes it simple. No jargon. No government-website UX. Just clear, AI-powered civic education.
This project was built for PromptWars Virtual Hackathon under the Election Process Education challenge.
Built entirely using Google Antigravity IDE — an agentic AI coding environment — with Gemini handling both the development assistance and the in-app AI features.
manasscodes
github.com/manasscodes
MIT — free to use, learn from, and build on.