-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Install Guide
- download Postgres
- run the dmg (it should cause an elephant to appear in the top navbar)
- click on the elephant, open psql
create database flyingcracker;
$ export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin (# note: Path= refers to path where postgres.app was installed)
$ pg_restore -d flyingcracker -O -h localhost ~/Downloads/fc3.dump
Before you start you will need more files than are included in this repository.
General files (please keep all these files in your ~/downloads folder):
- fc3.dump
- settings_local.py (for current master branch)
- secrets.json (for restructure-layout-2 branch)
Weather files:
- cbac.txt
- cbtv.txt
- noaa-COZ012.txt
#####Navigate within terminal to the directory in which you would like to install the environment#####
- $ pip install virtualenv
- $ virtualenv flyingcracker
- $ cd flyingcracker
- $ mkdir media
- $ cd media
- $ mkdir weather (move the weather files into weather via $ cp ~/Downloads/[file name] weather, or in finder)
- $ cd ../
- $ source bin/activate
- $ pip install -e git+ssh://git@github.com/grahamu/flyingcracker.git#egg=flyingcracker_project
- $ cd src/flyingcracker_project
---------for installing current master branch------------
- $ export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
- $ pip install -U -r requirements-dev.txt
Now you'll need to copy settings_local.py into the current directory (src/fc3) and edit the file to match the user name for the database that you created in postgres
---------for installing restructure-layout-2 branch-------
-
$ git pull origin restructure-layout-2
-
$ export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
-
$ pip install -U -r requirements-dev.txt
-
$ cd fc3/settings
-
$ cp devgraham.py dev[yourname].py
-
Open the file you have just created in your texteditor and edit the database config information 'USER' field to the name that you created for your database. Password is blank by default.
-
$ cd ../../
-
$ python manage.py runserver settings=config.settings.dev[yourname]
If you don't have ssh please follow this guide to setup a sshkey and copy it into your github account: sshkey creation.