Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.
/ hydra Public archive

Our Revolution's event promotion & events management tool, complete with other goodies.

Notifications You must be signed in to change notification settings

Our-Revolution/hydra

Repository files navigation

Hydra

What is this?

Our Revolution's event promotion & events management tool, complete with other goodies.

Prerequisites

  1. Pip
  2. Postgres
  3. Our Revolution's Main Site running locally
  4. mysql
  5. Recommended - virtualenvwrapper

Installation

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

Populate Zip Code Data

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.

Main Site Database

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 Database

Create a PostgreSQL database with create_geo_db command. Add the following gist to your .bash_profile or .zshrc to easily create project databases.

Usage & Useful Commands

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

About

Our Revolution's event promotion & events management tool, complete with other goodies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •