joewang704 / junior-design-prototype

1 stars 0 forks source link

Release Notes 4/24/17

New Software

- Setup live endpoint at http://healthitforward-new.us-east-1.elasticbeanstalk.com/ hosted on AWS
- Setup search funtion
- Cleaned code, removing unnecessary print statements or comments

Bug Fixes

Future Work

- Set endpoint to be http://www.healthitforward.com
- Get SSL certificate
- Implement video upload on posts
- Implement flagging feature for posts and comments

Install Guide

Prerequisites

Dependent libraries that must be installed

Download instructions

  1. Clone the github repository

  2. Create virtual environment (specify path if default interpreter is python3):

    $ cd [HealthItForward/]
    $ virtualenv [-p path/to/python2.7] venv  

    (Note: anything in these blocks is meant to be run in terminal)

  3. Activate virtual environment:

    Windows: $ venv\Scripts\activate

    Mac OS/Linux: $ source venv/bin/activate

Installation of actual application

  1. Install python dependencies using requirements.txt: make sure virtual environment is activated
    $ venv/bin/pip install -r requirements.txt  

Run Instructions

  1. Make sure virtual environment is activated, meaning the previous commands must have just been run in the same terminal window
  2. $ cd django_site/
    $ python manage.py runserver  

Coding Conventions

Follow PEP8    
Use four spaces for python

Pushing changes to AWS

Authorized users should have the AWS account credentials. To push changes go to https://console.aws.amazon.com/elasticbeanstalk -> All Applications -> Environments -> django_site -> HealthItForward-new In Overview there should be an option to Upload and Deploy. Make sure to zip the root folder as django_site, NOT HealthItForward. after zipping, upload and the changes should be made.