About
## Challenges we ran into
Building a real-time multimodal pipeline with geo-tracking and dual-role access presented a few tough hurdles:
The SQLite Schema Lock: When we added user relationships and wallet models to our SQLAlchemy schema, SQLite threw sqlite3.OperationalError: table complaints has no column named user_id. Because SQLite doesn't handle live schema migrations gracefully without Alembic, we kept getting server crashes during endpoint testing until we built auto-reset script helpers for local dev.
Bcrypt & Python 3.13 Encoding Bugs: While implementing password hashing alongside JWT, we ran into a nasty AttributeError: module 'bcrypt' has no attribute '__about__' caused by incompatibilities between newer bcrypt releases (4.1.0+) and passlib. Truncating 72-byte passwords and pinning the underlying bcrypt library to a stable 4.0.1 version solved the internal server errors.
Leaflet Map Rendering Crashing React: Adding Leaflet maps to Vite initially caused blank white screens (Uncaught ReferenceError) because map tiles were trying to measure DOM dimensions before React components finished mounting, along with missing global CSS imports. We solved this by creating guarded client-side rendering wrappers and explicitly importing Leaflet CSS globally.
## The problem it solves
# The Problem It Solves
Traditional civic grievance portals are digital black holes: citizens struggle with confusing category drop-downs, while city staff waste hundreds of hours manually sorting vague reports, filtering out duplicates, and trying to route issues to the right department. Worse, tickets are frequently closed on paper without actual fixes being made on the ground.
## MicroGov fixes this end-to-end:
- **For Citizens**: They simply snap a photo and record a quick voice note in their native language—multimodal AI automatically extracts the defect, tags GPS location, and files the report.
- **For Cities**: It auto-classifies issues, computes a dynamic 0–100 Priority Score, merges duplicate reports within a 50-meter radius, and routes work orders to the correct department.
- **For Accountability**: Field workers must upload an "After" photo, which Gemini AI compares against the "Before" photo to verify the repair before closing the ticket. Citizens and officers both earn GovCoins redeemable for local partner vouchers.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











