Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.82 KB

File metadata and controls

52 lines (36 loc) · 1.82 KB

CopOrNot

CopOrNot is a React Native application that allows users to report and log the presence of law enforcement at specific stations. The app integrates real-time location tracking and a dynamically updated database of stations, providing a quick and intuitive interface for crowdsourced reporting.


Features

  • Real-Time Location Updates: Automatically fetches the user's location and identifies the closest station.
  • Station Reporting: Users can log whether law enforcement ("Cop") is present or not ("Not") at their current location.
  • Dynamic Buttons: Buttons reset when the closest station changes, ensuring seamless reporting.
  • Crowdsourced Data: Reports are stored on a backend server for aggregation and analysis.
  • Responsive Design: A clean and intuitive interface built with React Native.

Tech Stack

  • Frontend: React Native
  • Location Services: Expo Location API
  • Backend: Node.js/Express.js (API for station data and report logging)
  • Database: MongoDB (via API endpoints)
  • State Management: React Context API
  • Other Libraries:
    • Axios for API calls
    • React Native components and styling

Usage

Reporting Presence

  1. Open the app and allow location permissions.
  2. The app will display your current city and the closest station.
  3. Press Cop or Not to report law enforcement presence.

Viewing Logs

  • View recent logs in the "Logs" section of the app.
  • Logs include the timestamp, station, and the user-reported status.

Roadmap

  • Add user authentication for verified reporting.
  • Implement analytics dashboard for report visualization.
  • Expand to support multiple cities dynamically.
  • Enhance UI with additional features like map integration.

Note*

  • This readme was generated by ChatGPT, so shit may not be entirely accurate