This was my undergrad capstone project. It was an idea for how to go about communicating the impact of the opioid crisis to the public.
To run the application:
python app.py
This will start a local flask server listening on port 8080.
Required packages (used pip3 for Python, and npm for JS):
Flask, Pandas
d3, leaflet, Leaflet.markercluster, topojson, bootstrap, crossfilter, jquery, underscore, queue
Just need to download the source code and associated packages.
I just used Codacy to test my coding style.
Line 41 in the app.py file may need to be modified to make it run on a live system.
app.run(host=os.getenv('IP', '0.0.0.0'), port=int(os.getenv('PORT', 8080)))
- Flask - The Python framework used
- Pandas - Reads the data and turns it into JSON
- d3 - Used to generate the charts
- leaflet - Used to make the map
- bootstrap - Handles the layout of the web page
- crossfilter - Handles the dynamic filtering of the data in the charts.
- underscore - Convenience JS functions
- Sean Bergunder - Initial work - paperplate
This project is licensed under the MIT License - see the LICENSE.md file for details