How jayadeeep/e-voting-system works
This is a web-based voting application: citizens register with Aadhaar-linked details, authenticate, cast a vote, and see a receipt or election results. The PHP entry point is the documented database-backed path for registration and voting; the sampled vote handler checks whether a voter has already voted before updating vote records. The JavaScript also contains a separate simulated OTP, admin, and results flow using browser storage. Its referenced OTP PHP endpoints are absent from the supplied tree, so their implementation and connection to the PHP flow cannot be verified.
Main entry points: index.php PHP application · script.js Simulated OTP flow · db.php Database connection
Components 15
Voting workflow
- PHP application
index.php - Voter registration
index.php - Voter authentication
index.php - Vote submission
index.php - Vote receipt
index.php - Election results
index.php
Browser experience
- Browser application
script.js - Simulated OTP flow
script.js - Admin dashboard
script.js - Browser voter store
script.js
Persistent data
- Database connection
db.php - MySQL database
Other components
- Citizen
- Administrator
- OTP PHP endpoints
Connections 17
- Citizen → PHP application: submits requests
- PHP application → Voter registration: handles registration
- PHP application → Voter authentication: handles sign-in
- PHP application → Vote submission: handles vote
- PHP application → Vote receipt: sets receipt data
- PHP application → Election results: renders results
- PHP application → Database connection: loads connection
- Voter registration → MySQL database: stores voter data
- Voter authentication → MySQL database: checks voter
- Vote submission → MySQL database: reads and updates votes
- Election results → MySQL database: reads vote totals
- Browser application → Simulated OTP flow: drives
- Browser application → Admin dashboard: drives
- Simulated OTP flow → OTP PHP endpoints: requests verification
- Simulated OTP flow → Browser voter store: updates simulated state
- Administrator → Admin dashboard: uses
- Citizen → Browser application: uses