Crowdsource Disaster Track System

Date Publish

June 24, 2025

Website

https://crowdsourced-track.netlify.app/

Note: Backend/API is currently not connected — submitting a concern will not work and may show an error in the console.

The Crowdsourced Disaster Track System is a web-based platform built with React (frontend) and a pure PHP backend, designed to empower communities in reporting local incidents and hazards in real time. This system utilizes Firebase Google Sign-In for secure and seamless user authentication, allowing users to contribute reports without needing traditional account creation.

Features

  • Google Sign-In Integration: Seamless and secure user login using Firebase authentication.
  • Interactive Map Selection: Users can mark their exact location on the map to report incidents accurately.
  • Geolocation to Address Conversion: Automatically generates a full address from selected latitude and longitude.
  • Concern Submission Modal: Clean and user-friendly form for submitting detailed concerns with optional name and image.
  • Anonymous Reporting: If name is not provided, the system automatically uses a generated anonymous name.
  • Dynamic Concern Categories: Allows users to choose concern types such as fire, flood, road block, accident, suspicious activity, etc.
  • Optional Image Upload: Supports image attachment to strengthen report validity.
  • Recent Community Concerns Panel: Displays latest submitted concerns beside the map in real-time.
  • Admin Dashboard: Provides full visibility of all reported concerns on a centralized map.
  • Status Filtering: Admin can filter map markers by status: Ongoing, Responding, Problem Solved, or Rejected.
  • Status Management: Admin can update the status of each concern based on actions taken.
  • Rejected Concern Handling: If a concern is found invalid, the admin can mark it as Rejected, reducing the user's attempt count.
  • Account Restriction Logic: Users with 0 attempts left will be blocked from logging in and submitting new concerns.
  • Real-time Feedback: Toaster notifications provide immediate response for actions like login, submission, and status updates.
  • Secure Backend Integration: Communicates with a custom-built pure PHP backend API for data storage and updates.

Technologies Used

  • React.js: Used for building the dynamic and interactive frontend interface.
  • Firebase Authentication: Enables secure and seamless Google Sign-In for users.
  • Leaflet.js: For interactive map rendering and marker placement.
  • OpenStreetMap API: Provides the base map tiles used in Leaflet.
  • PHP (Pure Backend): Handles API logic, database operations, and admin functionalities.
  • MySQL: Relational database used to store user concerns and admin data.
  • Geocoding API (e.g., Nominatim): Converts selected latitude and longitude into human-readable addresses.
  • Tailwind CSS / DaisyUI: For responsive, utility-first styling and modern UI components.
  • Date-fns: Used for formatting timestamps like "x minutes ago" on concern entries.