Metformin Treatment for Diabetes Prevention in Africa: META3 Trial
A randomised placebo-controlled double-blind phase III trial to determine the effects of metformin versus placebo on the incidence of diabetes in HIV-infected persons with pre-diabetes in Tanzania.
Liverpool School of Tropical Medicine
EDCTP grant number: RIA2018CO-2513
Trial registration: ISCRTN 77382043
https://ico.org.uk/ESDWebPages/Entry/Z4763134
See also https://meta-trial/meta-edc, https://github.com/clinicedc/edc
To setup and run a test server locally
You'll need mysql. Create the database
mysql -Bse 'create database meta character set utf8;'Create a virtualenv, clone the main repo and checkout master
conda create -n edc python=3.7
conda activate edcClone the main repo and checkout master
mkdir ~/projects
cd projects
https://github.com/meta-trial/meta-edc.git
cd ~/projects/meta-edc
git checkout masterCopy the test environment file
cd ~/projects/meta-edc
git checkout master
cp .env.tests .envEdit the environment file (.env) to include your mysql password in the DATABASE_URL.
# look for and update this line
DATABASE_URL=mysql://user:password@127.0.0.1:3306/metaContinue with the installation
cd ~/projects/meta-edc
git checkout master
pip install .
pip install -U -r requirements/stable-v0.1.10.txt
python manage.py migrate
python manage.py import_randomization_list
python manage.py import_holidaysCreate a user and start up runserver
cd ~/projects/meta-edc
git checkout master
python manage.py createsuperuser
python manage.py runserverLogin:
localhost:8000
Once logged in, go to you user account and update your group memberships. As a power user add yourself to the following
- ACCOUNT_MANAGER
- ADMINISTRATION
- AE
- AE_REVIEW
- CLINIC
- DATA_MANAGER
- DATA_QUERY
- EVERYONE
- EXPORT
- LAB
- LAB_VIEW
- PHARMACY
- PII
- RANDO
- REVIEW
- SCREENING
- TMG
- UNBLINDING_REQUESTORS
- UNBLINDING_REVIEWERS