Our web application utlizes a collection of APIs to present crime data of Prince George's County Maryland. Users will be able to pinpoint various forms of crime throughout the county. The data reaches baack as far as 2017 and is as current as the present. Aside from seeing previous crimes, users will also be able to report new crimes through our Forms page; anonymously.
https://whizzper.herokuapp.com/
We found it imparative to ensure that our application was versatile enough to be used by various devices and browsers. Users may be on the go when they need to report a crime, so we made sure our page was adaptable to mobile devices. Users also use various browsers such as Edge and Chrome, therefore we ensured our website can be used appropriately on different platforms.
- Safari for IOS devices
- Google Chome for desktop and mobile devices
- Microsoft Edge
Make sure you have the latest version of Node.js installed Clone the repository using a shell client, such as GitHub Desktop
git clone https://github.com/terrydiko/INST377Project.git
Install all node dependencies inside the application directory
npm install
Npm packages include:
- body-parser - Body parsing middleware of Node.js
- express - Server framework of Node.js
- mongoose - Database used for backend querying
Change directory (cd) to the application folder and start the application server
npm run start-watch
Open your preferred internet browser and type in:
localhost:4000
- GET requests can be retrieved from (crimes)[/crimes]
- GET requests retrieves list of locally reported crimes
- POST adds data to (crime)[/crime]
- POST requests to data of crimeType, street address, longitude, and latitude
- Site has slow loading times due to server pulling data from API all at once.
- The website requires no user credentials for access, which could lead to cyber security issues.
- Users can filter crimes by type but not by street, date, etc.
- Include more filtering options on the main page to give the user more control over viewing data
- Expand the website idea to other counties within Maryland such as Montgomery, Calverton, Anne Arundel
- Allow user to input a date or another piece of information to get specific information from crimes mathcing the input