Skip to content

ronaldgreeff/cityscience_traffic

Repository files navigation

cityscience_traffic

A (Django) RESTful API providing traffic counts for Devon, South West.

BUILD

  • Python==3.7
  • Django==2.2
  • djangorestframework==3.9.2

SETTING UP LOCALLY

  1. Set up your Postgres database
  2. Edit environment details env.ps1 / env.sh to reflect your database settings
  3. Start the virtualenv with:
  • Bash

    • $ python -m venv venv
    • $ source venv/scripts/activate
    • $ source ./env.sh
  • PowerShell

    • $ python -m venv venv
    • $ venv\scripts\activate
    • $ .\env.ps1
  1. $ pip install -r requirements.txt
  2. $ django manage.py makemigrations
  3. $ django manage.py migrate
  4. Import Devon.csv data into database by running 'python import_csv.py'
  5. Run 'python manage.py runserver' and check that the data succesfully imported by visiting http://127.0.0.1:8000

DEMO

https://citysci-traffic.azurewebsites.net

HOW TO USE

Manual:

Programatic:

About

(Django) RESTful API for exploring Devon's traffic data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages