Our Revolution's event promotion & events management tool, complete with other goodies.
- Pip
- Postgres
- Our Revolution's Main Site running locally
- mysql
- Recommended - virtualenvwrapper
Clone this repository and navigate to the project directory.
git clone git@github.com:Our-Revolution/hydra.git
cd hydra
Optionally, make a virtualenv and activate it using virtualenvwrapper.
mkvirtualenv hydra
workon hydra
Install required packages.
pip install -r requirements.txt
Download zip code data and extract all files to data/zipcodes/
before running database migrations.
Download: 2015 cartographic boundary file, 5-digit ZIP code tabulation area for United States, 1:500,000 from data.gov.
Hydra utilizes the database from Our Revolution's Main Site. Make sure you set GROUP_DATABASE_URL
to that local database in your .env
.
Create a PostgreSQL database with create_geo_db
command. Add the following gist
to your .bash_profile or .zshrc to easily create project databases.
From the working directory:
# Create an Admin User
python manage.py createsuperuser
# Run Local Server
python manage.py runserver
# Make Migrations
python manage.py makemigrations
# Run Migrations
python manage.py migrate