A mock up of the interface with Protocol Builder
Go to file
Dan 27af034ff0 Updating docker action. 2022-06-20 16:22:39 -04:00
.github/workflows Updating docker action. 2022-06-20 16:22:39 -04:00
config Moving tests from travis to github actions. 2022-06-20 13:20:55 -04:00
migrations Add IRB_ONLINE_STATUS column to irb_info table 2022-04-07 17:26:39 -04:00
pb upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
templates Possible fix for URL error on testing. 2021-07-02 13:00:04 -04:00
tests upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
.gitignore Fixes WTForms deprecation warnings 2020-06-16 15:50:46 -04:00
.sonarcloud.properties Adds sonarcloud and coverage reporting. Removes duplicate config file. 2020-06-16 14:45:41 -04:00
.tool-versions python 3.9 2022-05-18 09:43:20 -04:00
Dockerfile upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
README.md upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
example_data.py Adds environment variable option for loading sponsors via Docker. Prevents duplicate sponsors from being loaded. 2020-08-14 09:39:05 -04:00
poetry.lock upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
pyproject.toml upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
run.py Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
setup.cfg Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
setup.py Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
sonar-project.properties upgrading from pipenv to poetry 2022-06-20 15:12:30 -04:00
wait-for-it.sh Converting to use Postgres rather than SQLLite for database so that data might persist between bounces. 2020-03-23 13:57:19 -04:00
wsgi.py Fixes root path bug 2020-05-25 11:41:39 -04:00

README.md

sartography/protocol-builder-mock

UVA IRB Protocol Builder Mock

Requirements

  • Python 3
  • pip (for python 3)
  • poetry (just run pip install poetry)

Database Setup

The database for the CR Connect project will create an empty database for protocol builder as well. We did this because you would only by running this mock in order to support the app. Would be good to have this set up and run as a part of that docker-compose rather than having to spin this up seperately.

With the database running, be sure to execute

flask db upgrade

to set up the database structure.

Starting up Protocol Builder

pipenv run python run.py

This will start a webserver on localhost at port 5001. To see the api, you can visit http://localhost:5001/pb/ui

Create an example study

Finally, you will need to connect to the protocol builder mock ui in a web browser (see above url) And use this to connect to create a new study. Be sure the study is owned by the person you are logging in to on CR-Connect. For must development environments this will be dhf8r.

Deploying to staging

Builds happen automatically when pushed to the main branch.