Record audit information for the telomere length study
sudo apt-get install libmysqlclient-dev python-dev
sudo easy_install flask
sudo easy_install flask-sqlalchemy
sudo easy_install mysql-python
sudo easy_install flask-login
sudo apt-get install libldap2-dev
sudo apt-get install libsasl2-dev
sudo pip install python-ldap
sudo pip install Flask-WTF
sudo pip WTForms-Components
sudo pip install openpyxl
sudo pip install numpy
- Copy or clone the source from the git repository.
- Copy the defaultSettings.py file to settings.py
- Edit the settings.py file and change the following settings:
- Change
Debugto be false - Change
SECRET_KEYto a secret key. - Change
DATABASEto the database name - Change
SQLALCHEMY_DATABASE_URIto a valid MySQL connection string - Change
LDAP_URLto be include the server and port for the LDAP service - Change
LDAP_BASEDNto be a valid one of those things. - Change
SPREADSHEET_UPLOAD_DIRECTORYto be a valid directory for which the userwwwrunhas read and write permission.
- Change
The Telomere application creates the tables that it requires, but first you must create the database and give the user then necessary permissions.
CREATE DATABASE telomere;GRANT ALL PRIVILEGES ON telomere.* to {username}@127.0.0.1 identified by '{password}';
See Here.
- Install the requirements by running the command:
pip install -r requirements.txt- Run the Application by running the command:
python run.py- Test the application by running the command:
pytest