#Project Atlas
##Onboarding
####Postgresql Setup:
-
If you haven't already done so Install Postgres.app
-
Add to
~/.bash_profile
:export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
-
Source the new
~/.bash_profile
so it takes effect in current session:source ~/.bash_profile
-
Open psql from Postgres.app a.
CREATE DATABASE newadmit_db;
b.CREATE USER admin WITH PASSWORD 'pizza_rocks_516!';
-
If it tells you
admin
already exists then you can assume its done
####Django Project:
-
git clone https://github.com/briansudo/pic-locate.git
-
git pull https://github.com/briansudo/pic-locate.git
-
cd
-
virtualenv -p <path to python2> venv
-
source venv/bin/activate
-
pip install -r requirements.txt
(Ifpsycopg2
fails,brew install postgres
, then run again.) -
python manage.py migrate
-
python manage.py runserver
- If you haven't created a super user,
python manage.py createsuperuser