-
This webservice runs by python, therefor you have to install python and the needed packages
-
after successfull instalation the bash terminal should have a basis in fromt of the $
(basis)$-
to use the webservice it is recommended to use a conda virtuel environment
-
therefore open a bash terminal
(basis)$conda create -n yourenvname-activate the virtuel environment via
(basis)$conda activate yourenvname- your bash terminal now changed the basis to your virtual environment name
(yourenvname)$conda -
you are now able to install all import packages such as aiohttp
(yourenvname)$conda install -c main aiohttp- change directory in which the webservice.py script is located (try something like this)
(yourenvname)$ cd ~/Webservice/webservice- now start the script via
(yourenvname)$ ./webservice.py- Note: onlys files in the static folder and below can be converted and json files will be written into the webservice directory
- therefore generate an html soruce folder and json folder to not fill up webservice folder
- If every thinks workded now the bash terminal should lool like this
(yourenvname) Username@Domain:~$ ======== Running on http://0.0.0.0:8080 ========- open a webbrowser
- in the adress bar typ in http://localhost:8080/ or directly http://localhost:8080/Probanden/VerFlu_TI
- proof if dataset is complete (most important birth date and check boxes ans also if experiment and type seeting is correct, example sub-01 but not sub01 )
- press "Senden der Unterlagen"
- json file will be saved at
- copy json file in the suitable experimantal folder