- Python
- Virtualenv
- Mysql
- Messaging service - stmp server
- Git Large File Storage (LFS) Client
The application config files reside in config.py
. In your directory you have a file named config.py.example
Edit the file to update your mysql username and password and the mailing stmp server (I use elasticemail.com) then rename the file as config.py
-
Set up python
$ python --version
-
Set up your virtual environment in the project folder
$ pip install virtualenv
$ virtualenv ENV
$ source bin/activate (for Linux or Mac OS ) - Else for Windows -
$ > \path\to\env\Scripts\activate
Get the source code
$ git clone https://gitlab.com/librehealth/RadAIJournal.git
$ cd RadAIJournal
$ virtualenv venv
$ source my_project/bin/activate # For linux
$ venv\Scripts\activate.bat # for Windows
- Install the python modules using the requirements file
$ pip 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
$ mysql -u -p
$ mysql> CREATE DATABASE radAI;
To set this up on a new installation , delete the migrations folder then run the following commands
$ python manage.py db init
$ python manage.py db migrate #generates the migration script
$ python manage.py db upgrade #Applies the changes to the database
Edit the following files in the config.py
MAIL_SERVER = 'smtp.elasticemail.com'
MAIL_PORT= 2525
MAIL_USERNAME = 'myusername'
MAIL_PASSWORD = 'mypassword'
MAIL_USE_TLS = False
Assumes that you have
- Database migrations done
- The environment with all the pip modules installed
- Updated the config.py file with email setup/instructions
$ python radaijournal.py
Go to http://localhost:5000 to access the application
- Judy Gichoya
- Avanigadda, Prem Chand
- Siddhartha Nuthakki
- Aaron Elson P - GCI student from 2017 who made the logo
- Saptarshi Purkayastha
- Priyanshu Sinha
- Robby O'Connor - our dev ops master