Clone the repo:
git clone https://github.com/jcgharvey/vsm-svr.git/
Create a virtualenv inside the project folder (vsm-svr):
virtualenv venv
Activate virtualenv:
source venv/bin/activate
(Linux)
Install dependencies:
pip install -r requirements.txt
Run python
in shell and then:
>>> import models
>>> models.init_db([num_patients [, min_vital_infos [, max_vital_infos]]]):
Run the app:
python app.py
In addition to the above instructions, to run the application in production requires two environment variables to be set:
DATABASE_URL: <db connection string>
where db connection string is something
like postgres://user:password@host:port/database
(most databases are supported).
If this environment variable is not set, the application will try to use a local
SQLite database (as in development).
PRODUCTION: True
in order to disable debug mode in Flask.