An open-source, serverless voting and polling platform built with high performance, global edge deployment, and secure authentication.
- Frontend: React + Vite (deployed on Cloudflare Pages)
- Backend: Hono.js REST API (deployed on Cloudflare Workers)
- Database: Cloudflare D1 (Serverless SQLite at the edge)
- Authentication: Clerk Auth (JWT verification & webhooks sync)
- Monorepo Management: Turborepo + pnpm workspaces
voting-system/
├── apps/
│ ├── api/ # Hono backend running on Cloudflare Workers
│ ├── web/ # React + Vite frontend running on Cloudflare Pages
│ ├── clerk-proxy/ # Clerk authentication proxy configuration
└── DEPLOYMENT.md # Complete self-deployment & infrastructure guide
-
Clone the repository:
git clone https://github.com/Kaushik4141/voting-system.git cd voting-system -
Install dependencies:
pnpm install
-
Configure environment variables:
- Frontend (
apps/web): Copy.env.exampleto.env - Backend (
apps/api): Copy.dev.vars.exampleto.dev.vars
- Frontend (
-
Start development servers:
pnpm dev
Planning to deploy your own instance of the Voting System?
Check out our comprehensive Self-Deployment & Infrastructure Guide for detailed instructions on:
- Cloudflare Pages & Workers deployment
- Custom Domain & DNS configuration
- Cloudflare D1 Database migrations
- Clerk Authentication setup & Webhooks user synchronization