Our application is designed to enhance domestic security by identifying crime hotspots in Singapore. Utilizing government data from the past decade, this web app offers a powerful tool for both police officers and the public to understand and contribute to crime prevention efforts.
In response to the need for improved domestic security measures, our app aims to prevent crime by visualizing crime data and enhancing community involvement in crime reporting. By leveraging historical crime data and real-time user submissions, we provide a comprehensive overview of crime trends and hotspots across Singapore.
- Patrol Routing: View and follow designated patrolling paths by selecting specific Neighbourhood Police Centers (NPCs).
- Crime Hotspot Visualization: Gain insights into crime-prone areas for targeted patrolling and resource allocation.
- Crime Reporting: Contribute to safety by reporting crimes through our website. These reports help update and maintain the accuracy of the crime database in real-time.
- Interactive Map: View crime locations reported by other users, represented as pins on the map, highlighting higher crime risk areas.
- NPC Crime Statistics: Display the average number of crimes handled per year for each NPC to provide statistical insights into crime rates across different neighborhoods.
- Homepage Overview: Quick access to crime stats, user-reported crimes, and NPC-specific information through an intuitive interface.
- Frontend: React
- Backend: Express, Node.js
- Database: MySQL
- APIs: Google API for map functionalities, data.gov.sg for accessing government crime data.
- Node.js
- MySQL
- Clone the repository: git clone https://github.com/linuschui/bitbits.git
- Install dependencies:
cd frontend
npm install
cd backend
npm install
- Ensure that you have the .env files at root directory of frontend and backend: Frontend .env file:
REACT_APP_GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY"
Backend .env file:
MYSQL_PASSWORD="YOUR_MYSQL_PASSWORD"
- On both frontend and backend, run:
npm run start
- Access the app: Open your browser and navigate to
http://localhost:3000to view the app.