Skip to content

datamade/api.opencivicdata.org

This branch is 188 commits ahead of paultag/api.opencivicdata.org:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1d65032 · Apr 5, 2020
Apr 5, 2020
Apr 5, 2020
Jun 24, 2013
Apr 2, 2018
Apr 5, 2020
Dec 21, 2016
Mar 28, 2013
Jul 16, 2015
May 9, 2018
May 22, 2014
Apr 5, 2020
Apr 4, 2020
Jul 18, 2018
Jul 18, 2017
Apr 5, 2020
Apr 4, 2020
Jun 24, 2013
Jan 30, 2015
Apr 5, 2020

Repository files navigation

Issues?

Issues with the opencivicdata.org API should be filed at the api.opencivicdata.org issue tracker

All Open Civic Data issues can be browsed and filed at the Open Civic Data JIRA instance.

Usage

Instructions assumes that you already have a database populated with scraped data.

mkvirtualenv ocdapi --python=`which python3`
workon ocdapi
export DATABASE_URL=postgis://my-user:@localhost/my-pupa-database
python manage.py migrate
python manage.py runserver

Alternatively, you can add the database connection information to ocdapi/settings_local.py:

cp ocdapi/settings_local.py.example ocdapi/settings_local.py

Then you'll need to edit ocdapi/settings_local.py to contain the so that it contains the correct connection information

To run the app:

workon ocdapi
cd <directory where you cloned the repo>
python manage.py runserver

What is this?

This repo is essentially just a Django project for deployment- actual API code is a part of several other projects:

About

☁️ deployment stuff for api.opencivicdata.org

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CartoCSS 89.4%
  • Python 10.4%
  • Other 0.2%