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

reed-college/paneity

Repository files navigation

Paneity Build Status

Overview

Paniety is a Python based Django project developed by the Reed College Software Design Studio. This web application is meant to provide online tutoring to Reed College students. Some of the features include:

  • Instant messaging with tutors
  • Forum-style discussion pages
  • Search function for finding courses
  • Elegant responsive design

Before we get into the setup process, let's talk about some of the Django apps that we used as part of our project. Spirit is a modern Python based forum built on top of Django framework, which we used as a foundation for our forum application. Django Private Chat is a Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team.

Setup

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

Testing

To run our test suite, use the python manage.py test tutor command in the root directory for Paneity.

You should take a look at our wiki for more information.

Demo Shots

Homepage of Paneity Tutoring Application Homepage of Paneity Tutoring Application Forum Question Example Forum Question Example Tutoring Mainpage Tutoring Mainpage Mock-up of Available Tutoring for BIOLOGY 102 BIOL 102 Tutors Instant Messaging Feature Instant Messaging Feature

About

The state of being bread.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •