How shuvro86/example-voting-app works
Example Voting App accepts a browser vote, queues it in Redis, and has a .NET worker persist it to Postgres; the results service periodically queries the database and broadcasts live scores to a browser dashboard. The README documents the major services and deployment options; the sampled source shows the runtime handoffs. Deployment manifests and seed-data tooling are not runtime product components.
Main entry points: app.js Score Dashboard · Program.cs Vote Worker · server.js Results Service · index.html Vote Page
Components 11
Voting
- Vote Page
vote/templates/index.html - Vote Handler
vote/app.py
Vote Processing
- Vote Worker
worker/Program.cs
Live Results
- Results Service
result/server.js - Results Page
result/views/index.html - Score Dashboard
result/views/app.js - Socket.IO Client
result/views/socket.io.js
Data Services
- Redis Queue
- Postgres Votes
Other components
- Voter
- Results Viewer
Connections 10
- Voter → Vote Page: opens
README.md - Vote Page → Vote Handler: submits vote
vote/app.py - Vote Handler → Redis Queue: queues vote
vote/app.py - Vote Worker → Redis Queue: pops votes
worker/Program.cs - Vote Worker → Postgres Votes: writes votes
worker/Program.cs - Results Service → Postgres Votes: queries counts
result/server.js - Results Service → Score Dashboard: broadcasts scores
result/server.js - Results Page → Score Dashboard: loads script
- Score Dashboard → Socket.IO Client: connects through
result/views/app.js - Results Viewer → Results Page: opens
README.md