Skip to content

officialrahulmandal/Community_Connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Community-Connect

Django based application to help in the management of the communities.

Installation

Instructions only for linux debian-based system, please find equivalent for your OS.

Django Application

The following are the instructions to install the the application in the workbench to start working.

  1. Install Python 3.5 and Pip

    • Debian-Family: sudo apt install python3.5 python3-pip
  2. Set virtual environment

    1. Make: python -m venv venv
    2. Activate: source venv/bin/activate
  3. Install Requirements: pip install -r requirements.txt

  4. Setup Database

    1. Install PostgreSQL sudo apt update; sudo apt-get install python-pip python-dev libpq-dev postgresql postgresql-contrib;
    2. Create User/Role
      1. sudo -i -u postgres
      2. psql
      3. CREATE USER community_connect WITH PASSWORD 'MY_AWESOME_PASSWORD';
    3. Configure User/Role
      1. ALTER ROLE community_connect SET client_encoding TO 'utf8';
      2. ALTER ROLE community_connect SET default_transaction_isolation TO 'read committed';
      3. ALTER ROLE community_connect SET timezone TO 'UTC';
    4. Create Database: CREATE DATABASE community_connect OWNER community_connect;
  5. Create .env file in Community-Connect/app/Community_Connect/ and set the value for the following variables:

    • SECRET_KEY="MY_AWESOME_SECRET_KEY"
    • EMAIL_HOST="MY_AWESOME_SMTP_HOST" # "smtp.gmail.com"
    • EMAIL_HOST_USER="MY_AWESOME_EMAIL_ID"
    • EMAIL_HOST_PASSWORD="MY_AWESOME_EMAIL_PASSWORD"
    • DB_NAME="MY_AWESOME_DB_NAME" # "community_connect"
    • DB_USER="MY_AWESOME_DB_USER" # "community_connect"
    • DB_PASSWORD="MY_AWESOME_PASSWORD"
    • DB_HOST="MY_AWESOME_HOST" # "localhost"
    • DB_PORT="MY_AWESOME_PORT" # 5432
    • DEGUG_MODE= True # True | False
  6. Run following commands, inside the virtual environment

    1. python manage.py makemigrations
    2. python manage.py migrate
    3. python manage.py group
  7. Run the server

Inside virtual environment, run python manage.py runserver. Now, go to 127.0.0.1:8000/, your welcome page should show up.

User Documentation

The following is the instructions to set up for editing the user-documentation. The user documentation is done using Mkdocs. Nagivate to the docs/build folder and run mkdocs serve to work on the documentation. Visit Mkdocs Website for more information. To enable the documentation being hosted on gh-pages, the site folder created when you run mkdocs build is pasted in the docs folder of the repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published