Vote App Demo

A simple voting application built for Val Town with React frontend and Hono backend.

Features

  • ✨ Create new votes with randomly generated titles
  • 🔗 Share vote links
  • ⏰ Votes expire after 1 hour
  • 📱 Responsive design with TailwindCSS

Architecture

  • Frontend: React with React Query for state management
  • Backend: Hono API framework
  • Database: SQLite for data persistence
  • Styling: TailwindCSS

Vote Title Generation

Votes are automatically generated using random combinations of:

  • Netherlands cities (Amsterdam, Rotterdam, Utrecht, etc.)
  • B-Corp related terms (sustainable, impact, community, etc.)
  • Software terms (platform, solution, application, etc.)

Example: "Amsterdam sustainable platform"

API Endpoints

  • POST /api/votes - Create a new vote
  • GET /api/votes/:id - Get vote by ID

Data Persistence

Votes are stored in SQLite and automatically expire after 1 hour.