This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Set Up Notes
Alex Grant edited this page Jul 14, 2017
·
8 revisions
Here is how to start running the project!
- Make a new virtualenv with python 3.6. If you have virtualenvwrapper, you can do this with
mkvirtualenv paneity -p python3
. Afterwords, typepython -V
to make sure you have the right version. - Install postgres. If you're on a mac, the easiest way to do that is with the postgres app.
- Clone the repo.
git clone [email protected]:reed-college/paneity.git
orgit clone https://github.com/reed-college/paneity.git
- Set up spirit. Go out of you paneity directory (
cd ..
) and typegit clone [email protected]:reed-college/Spirit.git
. When you're done, your file structure should look something like this:
foldername
├── paneity
│ ├── paneity
│ ├── manage.py
│ └── ...
└── Spirit
├── example
├── spirit
└── ...
- install the packages.
cd
into the repo and typepip install -r requirements.txt
- Set up postgres.
- Open psql, or if you're in the postgres app click the '⛁' symbol that says 'postgres' below it.
- Type the commands on this page
python manage.py migrate
-
python manage.py collectstatic
. This moves all of the.css
and.js
files from their different places in the repo into the/static/
directory python manage.py runserver
- Go to
localhost:8000
in your browser and there should be something there! - In another terminal, activate your virtualenv and in the paniety directory type
python manage.py run_chat_server
. This will let you test out the chat functionality - (optional) if you want to put some data in your db, run
python manage.py loaddata subjects courses users questions chats