Skip to content

Anonymous peer support chat application with the ability to flag risky messages to allow admins to monitor the safety of the private discussions

License

Notifications You must be signed in to change notification settings

IanSteenstra/PeerSupport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PeerSupport logo

PeerSupport

PeerSupport is an anonymous peer support chat application that allows users to message each other without the worry of their identity being known by their peers. Users can flag risky messages (e.g. Suicidal Ideation, Potential Violence, Harassment), which only monitor admins (e.g. school counselors) can view and decide the best course of action to ensure a safe environment. The flagging of messages can also be done by a machine learning algorithm.

Installation

Docker & Docker-Compose are needed in order to run this application. You can download Docker here and Docker-Compose here. Make sure to follow the directions according to the system you are running the application on.

To clone the repository, run the following command after downloading git here :

  1. git clone https://github.com/IanSteenstra/PeerSupport.git

Running Application

Run the following commands inside the root directory:

  1. docker-compose build
  2. docker-compose up

You can now view the main website at http://127.0.0.1 and the Django Admin Page at http://127.0.0.1/api/admin/.

Connect to the backend server

In case you need to make migrations to the database or create a superuser, who will need to connect to the running backend server.

  1. In another terminal, while the servers are still running, enter docker ps
  2. Find the Container ID for the peersupport_backend server (ex: db54a724e9a4)
  3. Run docker exec -it <container ID> bash
  4. Run your desired commands (ex: python manage.py migrate, python manage.py createsuperuser)

Docker for Windows Issue

If Nginx is giving an error after running docker-compose up, you may need to turn filesharing on for the entire directory of the application. For help, look under FILE SHARING here.

License

PeerSupport is licensed under the terms of the MIT license and is available for free.