==================== Initial installation ==================== Pre-Requisites =============== * Install `python3 `_. * Install `virtual environment `_ and `virtualenvwrapper `_. * Install a database management system that is `supported by Django `_, create and configure a database. * Install and configure the `MOSAIC Tools `_. * Install and configure the `MAGPIE Model and Simulation Server `_. * Install `R `_ and the R packages `christbald/magpie_api_r `_, `RODBC `_, `ggplot `_ and `devtools `_ **that are required for the computational analytic in the Research view**:: To bootstrap the project ======================== * Create a clean base environment using virtualenv and virtualenvwrapper **outside** the project directory:: mkvirtualenv -p /usr/bin/python3 * Install required packages from file ``requirements.pip``:: pip install -r requirements.pip * Configure the environment by creating and editing the setting file ``local.py`` or ``production.py``:: cp predictDemo/settings/local.py.example predictDemo/settings/local.py * Applying database schema:: python manage.py migrate [--settings=predictDemo.settings.local] * Create a super user with admin privileges:: python manage.py createsuperuser [--settings=predictDemo.settings.local] * Synchronize role permissions with specific settings to admin interface:: python manage.py sync_roles [--settings=predictDemo.settings.local] * Run server:: python manage.py runserver [--settings=predictDemo.settings.local] To connect the MOSAIC TTP Server ================================ * Go to **Django Admin > Authentication and Authorization > Groups** and amend the fields ``TTP StudyId`` and ``TTP TargetIDType`` to the groups **dept_haematology** and **trial_cml**. Both values for each group have to be configured in the dispatcher module of the MOSAIC TTP server. This can be done: #. ... by modifying the pre-configured XML entry located in the database ``ttp_dispatcher``, table ``configuration``, column ``configKey`` of the dataset ``dispatcher.config.1``. For each group, a new study with name ```` must be added and associated with the corresponding consent, represented as domain in the gICS module of the MOSAIC TTP server, and the organizational entity (identity), represented as domain in the EPIX module of the MOSAIC TTP server. #. ... by adding an entry (alias) for each group in the database ``ttp_dispatcher``, table ``alias`` with values ```` as ``alias``, ``system.`` as value and ``"PSN"`` as ``aliasContext``. The alias ```` corresponds to the domain in the gPAS module of the MOSAIC TTP server. The domain in gPAS has to be named ``system.``.