Skip to content

KMaina/counselling-app

Repository files navigation

Counselling App

This web app will be focusing on suicide prevention by offering emotional support through counsellors to those who may be in distress and therefore in danger of dying by suicide as well as creating awareness on suicide within communities during this pandemic.
Live link: https://well-heard.herokuapp.com/

Getting Started

To get a copy of the project up and running on your local machine for development and testing purposes,

  1. clone this repository
    git clone https://github.com/KMaina/counselling-app
    
  2. Set up a Python development environment that includes; Python, pip & a virtual environment
    $ python3.6 -m venv --without-pip virtual
    
    $ source virtual/bin/activate
    
    (virtual) $ curl https://bootstrap.pypa.io/get-pip.py | python

Prerequisites

  1. Install project dependencies
     (virtual) $ pip install -r requirements.txt
  • See deployment for notes on how to deploy the project on a live system.

Installing

  1. To get a development env running, use the .env.example file to create your own .env file.
  2. Create a postgres db
(virtual)$ psql
pc-name=#  CREATE DATABASE <name>;
  • Create a .env file and replace with the appropriate credentials
SECRET_KEY=generate-a-key
DEBUG=True
DB_NAME='db-name'
DB_USER='username'
DB_PASSWORD='password'
DB_HOST='127.0.0.1'
MODE='dev'
ALLOWED_HOSTS='*'
DISABLE_COLLECTSTATIC=1
EMAIL_USE_TLS=True
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_HOST_USER=user@gmail.com
EMAIL_HOST_PASSWORD=password

3.Apply initial migrations

(virtual) $ python manage.py migrate 
  1. Make migrations to your database
(virtual) $ python manage.py makemigrations application
(virtual) $ python manage.py migrate
  1. Create admin account
(virtual) $ python manage.py createsuperuser
  1. Start development server
 (virtual) $ python3 manage.py runserver

Running the tests

Run automated tests for this system

(virtual) $ python3 manage.py test application

Deployment

With all environment variables changed to suit your local copy of this repository, deploy the application to Heroku to see it live

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published