Skip to content
A back end for investigating the movement of money in B.C. politics.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ebextensions
.elasticbeanstalk
bigmoney
data
.gitignore
LICENSE.md
README.md
manage.py
requirements.txt

README.md

Dogwood Big Money

If you would like to become involved, please contact an existing collaborator.

License: CC BY-NC-SA 4.0

Setup instructions

Setup up your virtual environment. You may use virtualenv (or any equivalent, like conda). Use python 3.4+

Once you've setup your virtual environment, initialize it using source activate , and then run

pip install -r requirements.txt

to install the package dependencies.

Database setup

Setup your postgres db as following (assuming you have postgres 9.4+ installed)

  • Login as the postgres user sudo su - postgres
  • createdb -U postgres bigmoney
  • createuser -U postgres -P bigmoney
  • psql -U postgres
    • grant all privileges on database bigmoney to bigmoney

Now you want to make sure that the following variables are set as environment variables:

export DATABASE_NAME='bigmoney'
export DATABASE_USER='bigmoney'
export DATABASE_PASSWORD='*****'
export DATABASE_HOST='127.0.0.1'
export DATABASE_PORT='5432' # Default Postgres port
export SECRET_KEY='****' # Make up a secret key here, used to generate csrf tokens among other things

or, depending on your hosting configuration it might be preferable to amend settings.py to contain those values. (Remember: never commit passwords into the Git repository!)

To initialize the application-specific database content

  • Run database migrations: python manage.py migrate
  • Create an administrative user: python manage.py createsuperuser
  • Load the donation data into the database: python manage.py loaddata data/fixtures/data.json

Major dependencies

This project uses:

TODO:

  • Tests!
  • See issues in github
You can’t perform that action at this time.