This is the code that powers hackerunion.org. It is built on top of petri, an open source project developed at HuffPost Labs. The backend uses the python django framework, and the front end is built using the Zurb Foundation framework.
- Scss / sass - Install sass,
gem install sass
- pip
- virtualenv -
pip install virtualenv
- mysql - only used on production, but you need it to install the
python-mysql
dependency. To install on osx do abrew install mysql
- sqlite - the database used locally. probably is already installed
DJANGO_LOCAL=True ./manage.py syncdb --noinput
(no need to create a superuser, one will be created for you. see the Test User section.).
- Create a virtualenv in your git directory (don't worry, it will be ignored on checkins) --
virtualenv env
- Install all the requirements (ensure
env
is active by running "env/bin/activate") --pip install -r var/etc/requirements.txt
- [optional] Run the celery tasks:
DJANGO_LOCAL=True ./manage.py celeryd -v 2 -B -E -l INFO
(this should run in a separate terminal from the server) - Run the server in local mode --
var/bin/run_local.sh
orDJANGO_LOCAL=True python manage.py runserver
- Visit http://localhost:8000/
We automatically create a test user with superuser abilities. Username: admin
The user has the password: "testuser" and can be used to access the django admin project.
All pull requests are welcome, no matter the size. For push access make a few awesome pull requests, or contact one of the maintainers listed below.
###Contributors
This project is licensed under GNU GENERAL PUBLIC LICENSE VERSION 3. See the file LICENSE.md for a copy of the license.