How spandan2106/metropolis-evoting-2026 works
Metropolis EVoting is a React/Express voting platform with identity and role controls, vote recording, an audit ledger, and administrator-controlled publication. The main workflow is citizen registration or login, ballot submission, and later results viewing; administrators manage election state and publication. The sampled implementation places most UI behavior in src/App.tsx and server behavior in server.ts, with MongoDB schemas in mongoose_models.ts. Several product capabilities are documented but their implementation details were not sampled, so those links are shown only where documented or left unverified.
Main entry points: server.ts Express API and SSE · mongoose_models.ts Election data models · App.tsx Voting and results UI · main.tsx React entry point
Components 14
Voting interface
- Voting and results UI
src/App.tsx - React entry point
src/main.tsx
Election protocol
- Identity and access
server.ts - Registration
server.ts - Vote submission
server.ts - Hash-linked vote ledger
server.ts - Results and turnout
server.ts - Express API and SSE
server.ts
Persistent records
- MongoDB
- Election data models
mongoose_models.ts
Administration and oversight
- Audit log
server.ts - Notifications
server.ts - Authority controls
src/App.tsx
Other components
- Citizens and candidates
Connections 22
- React entry point → Voting and results UI: renders
src/main.tsx - Citizens and candidates → Voting and results UI: use
README.md - Voting and results UI → Express API and SSE: requests
- Authority controls → Voting and results UI: shares interface
src/App.tsx - Express API and SSE → Identity and access: routes login
server.ts - Express API and SSE → Registration: routes registration
server.ts - Express API and SSE → Vote submission: routes vote
server.ts - Express API and SSE → Results and turnout: routes stats
server.ts - Vote submission → Hash-linked vote ledger: adds vote
server.ts - Identity and access → Election data models: reads users
server.ts - Registration → Election data models: checks users
server.ts - Vote submission → Election data models: updates voter
server.ts - Results and turnout → Election data models: aggregates blocks
server.ts - Express API and SSE → Election data models: uses models
server.ts - Election data models → MongoDB: persists records
mongoose_models.ts - Express API and SSE → Audit log: records actions
server.ts - Express API and SSE → Notifications: serves alerts
server.ts - Authority controls → Express API and SSE: controls election
- Express API and SSE → Results and turnout: publishes updates
server.ts - Express API and SSE → Notifications: broadcasts updates
README.md - Citizens and candidates → Hash-linked vote ledger: casts ballots
README.md - Results and turnout → Citizens and candidates: releases outcome
README.md