Installation

General

During development, the ws web services can be installed on the development server provided by django. Then once developed, it can be deployed on a production server in order to be used by web users. This implies a production environment, in addition to the tools and libraries already used for development.

Source software

Once the installation finished, the ws resulting hierarchy is such as :


    /opt/ws/db
           /ws
           /doc
           /fab
           /softwares

  + External folders depending on calcul resource :

    /opt/ws_rsrc/{resourcename}/requests : run folders
    /opt/ws_rsrc/{resourcename}/simg     : softwares Singularity image files

  + Online documentation :

    /var/www/html/softwares : softwares online documentation
    /var/www/html/ws        : ws online documentation

Development environment

The ws software is developed with :

  • python language (python 3.7 version),

  • django framework,

  • some django applications, like for example django-rest-framework.

  • SQLite for databases.

  • Sphinx for documentation.

See the requirement.txt file :

Django==3.2
Sphinx==4.1.2
djangorestframework
pyyaml
pycurl
djangorestframework-xml
djangorestframework-jsonp
djangorestframework-yaml
djangorestframework-jwt
xlwt
xlrd

Additional production environment

In our case, the software has been deployed on a virtual machine with Debian 10 (Buster), Apache2 server and mod_wsgi.

Installation procedure

Once installed, the ws web services allow to run the softwares that have been delivered and installed as required by ws : see Softwares installation.