How nelfannaveen/suggestion-box works
This Flask civic-feedback app lets residents submit and track local suggestions, browse and upvote them, while a desktop Command Center can retrieve summary statistics and suggestion records through REST endpoints. The main domain flow is submission with optional photo upload, persistence and tracking-ID assignment, followed by public tracking and community voting; a separate reporting branch exposes aggregates and recent records. The supplied evidence shows these capabilities in app.py, but no README or template contents, so presentation details and any desktop client behavior are not inferred.
Main entry points: app.py Suggestions and admins · static Uploaded photos
Components 14
Citizen services
- Suggestion submission
app.py - Photo upload
app.py - Status tracking
app.py - Suggestion browsing
app.py - Community upvotes
app.py - Submission confirmation
app.py
Suggestion data
- Suggestions and admins
app.py - Database initialization
app.py - Demo data seeding
app.py - Uploaded photos
static
Reporting API
- Statistics endpoint
app.py - Recent suggestions endpoint
app.py
Other components
- Residents
- Desktop Command Center
Connections 17
- Residents → Suggestion submission: submits
app.py - Suggestion submission → Photo upload: saves optional
app.py - Suggestion submission → Suggestions and admins: inserts suggestion
app.py - Suggestion submission → Submission confirmation: redirects with ID
app.py - Photo upload → Uploaded photos: writes photo
app.py - Residents → Status tracking: looks up status
app.py - Status tracking → Suggestions and admins: reads by tracking ID
app.py - Residents → Suggestion browsing: browses suggestions
app.py - Suggestion browsing → Suggestions and admins: reads filtered list
app.py - Residents → Community upvotes: upvotes
app.py - Community upvotes → Suggestions and admins: increments votes
app.py - Desktop Command Center → Statistics endpoint: requests metrics
app.py - Statistics endpoint → Suggestions and admins: aggregates records
app.py - Desktop Command Center → Recent suggestions endpoint: requests records
app.py - Recent suggestions endpoint → Suggestions and admins: reads recent records
app.py - Database initialization → Suggestions and admins: creates tables
app.py - Demo data seeding → Suggestions and admins: seeds sample records
app.py