LibreHealthIO/RadAIJournal

Name: RadAIJournal

Owner: LibreHealth

Description: null

Created: 2018-01-12 04:45:29.0

Updated: 2018-01-13 02:36:17.0

Pushed: 2018-01-14 22:37:46.0

Homepage: null

Size: 303566

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Installation - Requirements
  1. Python
  2. Virtualenv
  3. Mysql
  4. Messaging service - stmp server
Installation - Configuration

The application config files reside in `config.py` Edit the file to update your mysql username and password

Installation - Steps
  1. Set up python

  2. Set up your virtual environment in the project folder

    p install virtualenv
    rtualenv ENV
    urce bin/activate  (for Linux or Mac OS ) - Else for Windows - 
    \path\to\env\Scripts\activate
    

Get the source code

t clone https://gitlab.com/librehealth/RadAIJournal.git
 RadAIJournal
rtualenv venv  
urce my_project/bin/activate  # For linux
nv\Scripts\activate.bat # for Windows 
  1. Install the python modules using the requirements file
    p install -r requirements.txt
    
Getting the database ready

The application relies on a mysql backend Note : When working with database servers such as MySQL and PostgreSQL, you have to create the database in the database server before running upgrade.

In this case our database name is radAI

sql -u  -p
sql> CREATE DATABASE radAI;

To set this up on a new installation , delete the migrations folder then run the following commands

ASK_APP=radaijournal.py
ask db init
ask db migrate  #generates the migration script 
ask db upgrade  #Applies the changes to the database 
Email setup

Edit the following files in the config.py

_SERVER = 'smtp.elasticemail.com'
_PORT= 2525
_USERNAME = 'myusername'
_PASSWORD = 'myassword'
_USE_TLS = False
Finally running the application

Assumes that you have

  1. Database migrations done
  2. The environment with all the pip modules installed
  3. Updated the config.py file with email setup/instructions
Linux / Mac
port FLASK_APP=radaijournal.py
ask run
Windows
FLASK_APP=radaijournal.py

Go to http://localhost:5000 to access the application

Contributors
  1. Judy Gichoya

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.