How hussain-reddy/onlinevotingsystem works
This is a Flask online voting application. Voters register or log in, view candidates, submit one vote, and view vote totals. The main runtime is concentrated in app.py, which handles routes and SQLite access; templates provide the pages and a small JavaScript helper confirms vote submission. The README also advertises an admin dashboard, but the shown routes do not establish its implementation. The graph reflects the sampled source and documented capabilities; template internals were not inspected.
Main entry points: app.py Flask routes · vote.html Voting page · register.html Registration page · login.html Login page
Components 12
Web interface
- Flask routes
app.py - Registration page
templates/register.html - Login page
templates/login.html - Voting page
templates/vote.html - Vote confirmation
static/script.js - Results page
templates/results.html
Voting workflow
- Account access
app.py - Vote submission
app.py - Results aggregation
app.py - Admin dashboard
app.py
Application data
- SQLite voting data
app.py
Other components
- Voter
Connections 13
- Voter → Flask routes: uses routes
app.py - Flask routes → Registration page: renders
app.py - Flask routes → Login page: renders
app.py - Flask routes → Voting page: renders
app.py - Flask routes → Results page: renders
app.py - Voting page → Vote confirmation: confirms vote
- Flask routes → Account access: handles access
app.py - Flask routes → Vote submission: handles submission
app.py - Flask routes → Results aggregation: loads results
app.py - Account access → SQLite voting data: reads and writes
app.py - Vote submission → SQLite voting data: reads and updates
app.py - Results aggregation → SQLite voting data: reads totals
app.py - Flask routes → Admin dashboard: advertises capability
README.md