NYCCC stand for the New York City Car Collision, it's the simple web service that summarize the Contributing Factors of car collisions in the New York City into an easy to understand and intepret pie chart.
We use the data from the New York City's NYC Open Data API. Which is being fetched live every time the webpage is loaded.
- Benjapol Worakan 5710546577
Just visit http://nyccc.herokuapp.com to see the site live.
- Python 2.7 or 3.5+, don't forget to add the Python executable to your PATH afterwards.
- Virtualenv, can be installed after installing Python by using
pip install virtualenv
Start from the command-line interface of your operating system (e.g. Terminal, bash, Command Prompt, Powershell)
- Clone the repository
git clone https://github.com/benwrk/NYCCC.git
, if you don't have Git installed, just download the project as a ZIP file right here. - Create a virtual environment
virtualenv env
. - Activate the virtual environment, use
source env/bin/activate
for UNIX-based systems (including Mac and Linux). For Windows use.\env\Scripts\activate.bat
if you are using Windows Command Prompt, or use.\env\Scripts\activate
if you are using Windows PowerShell. - Install project requirements
pip install -r requirements.txt
. - Initialize project database
python manage.py makemigrations
and thenpython manage.py migrate
right after. - Now we're ready, run the project. On Windows:
python manage.py runserver 0.0.0.0:8000
. On UNIX-based systems:gunicorn NYCCC.wsgi
. - The site is live, visit http://localhost:8000 on your browser to get started.