Skip to content
This repository has been archived by the owner on Oct 24, 2019. It is now read-only.

Set Up Notes

Alex Grant edited this page Jul 14, 2017 · 8 revisions

Here is how to start running the project!

  1. Make a new virtualenv with python 3.6. If you have virtualenvwrapper, you can do this with mkvirtualenv paneity -p python3. Afterwords, type python -V to make sure you have the right version.
  2. Install postgres. If you're on a mac, the easiest way to do that is with the postgres app.
  3. Clone the repo. git clone [email protected]:reed-college/paneity.git or git clone https://github.com/reed-college/paneity.git
  4. Set up spirit. Go out of you paneity directory (cd ..) and type git 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
    └── ...

  1. install the packages. cd into the repo and type pip install -r requirements.txt
  2. Set up postgres.
    1. Open psql, or if you're in the postgres app click the '⛁' symbol that says 'postgres' below it.
    2. Type the commands on this page
  3. python manage.py migrate
  4. python manage.py collectstatic. This moves all of the .css and .js files from their different places in the repo into the /static/ directory
  5. python manage.py runserver
  6. Go to localhost:8000 in your browser and there should be something there!
  7. 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
  8. (optional) if you want to put some data in your db, run python manage.py loaddata subjects courses users questions chats
Clone this wiki locally