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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The application config files reside in `config.py
`
Edit the file to update your mysql username and password
Set up python
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
p install -r requirements.txt
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
Edit the following files in the config.py
_SERVER = 'smtp.elasticemail.com'
_PORT= 2525
_USERNAME = 'myusername'
_PASSWORD = 'myassword'
_USE_TLS = False
Assumes that you have
port FLASK_APP=radaijournal.py
ask run
FLASK_APP=radaijournal.py
Go to http://localhost:5000 to access the application