MOCCA (ext) Trial EDC
Project description
mocca-edc
Liverpool School of Tropical Medicine
See also https://github.com/clinicedc/edc
Installation
To setup and run a test server locally
You’ll need mysql and Redis. Create the database
mysql -Bse 'create database mocca character set utf8;'
Create and activate a virtual environment
conda create -n edc python=3.9
conda activate edc
Clone the main repo and checkout master
mkdir ~/app
cd ~/app
git clone https://github.com/mocca-trial/mocca-edc.git
cd ~/app/mocca-edc
git checkout master
Copy the test environment file
cd ~/app/mocca-edc
git checkout master
cp .env-tests .env
Edit 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/mocca
Continue with the installation
cd ~/app/mocca-edc
git checkout master
pip install -U -r requirements.txt
python manage.py migrate
python manage.py import_randomization_list
python manage.py import_holidays
Ensure Redis is running
$ redis-cli ping
PONG
Create a user and start up runserver
cd ~/app/mocca-edc
git checkout master
python manage.py createsuperuser
python manage.py runserver
Login:
localhost:8000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
mocca_edc-0.1.32-py3-none-any.whl
(421.9 kB
view details)
File details
Details for the file mocca_edc-0.1.32-py3-none-any.whl
.
File metadata
- Download URL: mocca_edc-0.1.32-py3-none-any.whl
- Upload date:
- Size: 421.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daac1fe61473c0cf99d6dbfe31394fafa366a9a490b355ff63787b63088ce288 |
|
MD5 | 41d122363d2a18626724df8bb0d061da |
|
BLAKE2b-256 | 205f74606b288243ab7137cf685b17bf83fbc93fda9a447073c594e1fa134447 |