A Flask-based web application that empowers communities to report and track local issues like potholes, broken streetlights, garbage dumps, and more. Citizens can quickly submit reports with location, category, and optional images. Administrators can view and manage all reports from a central dashboard.
- 📍 Location-based reporting: Users can report issues with latitude & longitude.
- 📝 Rich issue details: Title, description, category, and reporter name.
- 🖼️ Image uploads: Attach photos of the issue.
- 🗂️ Categorization: Tag reports as Roads, Electricity, Sanitation, or Other.
- 📊 Dashboard: View all submitted issues, sorted by recency.
- 🔐 Admin Panel: Manage community issues.
- 💾 SQLite Database: Lightweight and easy to set up.
- Backend: [Flask] (Python)
- Database: SQLite
- Frontend: HTML, CSS (custom styling in
static/style.css) - Template Engine: Jinja2 (
templates/*.html) - Image Handling: Werkzeug & Flask file upload utilities
community-reporter/
│── app.py # Main Flask application
│── init_db.sql # SQL schema for issues table
│── requirements.txt # Dependencies
│── uploads/ # Uploaded issue images (auto-created)
│── templates/ # HTML templates
│ ├── base.html
│ ├── index.html
│ ├── dashboard.html
│ └── admin.html
│── static/
│ └── style.css # Frontend styling
└── README.md # Project documentation
git clone https://github.com/your-username/community-reporter.git
cd community-reporterpython -m venv venv
source venv/bin/activate # On Linux/Mac
venv\Scripts\activate # On Windowspip install -r requirements.txtpython
>>> from app import init_db
>>> init_db()
>>> exit()flask runThe app will be available at http://127.0.0.1:5000/ 🚀
- 🌐 Integrate Google Maps for precise location reporting.
- 📧 Email notifications for admins on new reports.
- 📱 Mobile-friendly UI with responsive design.
- 🔑 User authentication (reporters & admins).
Contributions are welcome! 🎉
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License – feel free to use and modify it for your community projects.