Skip to content

LawsOfForm/Webservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webservice

Transforming html to json files

(basis)$
(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 
(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

About

Transforming html to json files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors