The first thing you'll need to do is clone this repo, it's preferred that you fork it and then submit pull requests from your fork. This way we have clear providence of who did what, but also, it will be easier to roll back changes, should something be wrong, before committing to the canonical master repository.
You'll need Python 3 (Python 3.5 is preferred), pip3 (1.8.2 is preferred), and the heroku toolbelt and a heroku account to deploy this repository.
After you install Python simply run:
pip install -r requirements.txt
(which is found in the top level directory of the main repo)
If you have python 2 installed, you might need to do:
pip3 install -r requirements.txt
Everything regarding deploying to heroku should be in
setup.md
(in the base directory).
To migrate the database, please see:
manager.py
(in the base directory).
To contribute to this application, please fork from the canonical master and create pull requests.
To configure a remote for a fork:
git remote add upstream https://github.com/18F/SkillShare
To sync a fork
git fetch upstream
git pull
git checkout master
(or whatever branch)To make a pull request
git pull origin master
If you try creating a db:
createdb skills_admin
and you get:
createdb: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Try:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Try installing xcode-setup and re-run the Installation
Please see here: http://stackoverflow.com/questions/33866695/install-psycopg2-on-mac-osx-10-9-5-pg-config-pip