Figure out if a given time and place in SF is safe or not. The applied-ML model is based on millions of incident reports across 15 years made public by the San Francisco Police Department.
https://drive.google.com/open?id=1JddXMyapWG0qLpecVmBYc3jgS0cdJ3za
- Python 3
npm
- Google Maps Geocoding API Key
-
Install dependencies in both services
cd front-end
andnpm i
cd back-end
andpip3 install -r requirements.txt
-
Export Google Maps API Key and start up Flask backend
$ cd back-end $ export SFCRIME_API_KEY='<Your Google Maps API here>' $ python3 app.py
-
Export API Key again and start up React frontend
$ cd front-end $ export REACT_APP_SFCRIME_API_KEY='<Your Google Maps API here>' $ npm start