You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only requirement is a working version of python 3.9.x. Using anaconda or [https://docs.conda.io/en/latest/miniconda.html](miniconda) for a python environment is highly recommended.
17
15
18
16
The setup consists of 5 parts:
17
+
19
18
1.[Python environment](#python-environment)
20
19
2.[Database setup](#database-setup)
21
20
3.[Annotation protocol](#annotation-protocol)
22
21
4.[Deploy server](#deploy-server)
23
22
5.[Add data](#add-data)
24
23
25
-
26
24
### Python environment
27
25
28
26
First install the python environment.
@@ -71,20 +69,23 @@ flask run reset-annotations
71
69
72
70
This will reset the annotations table in the database and is necessary to properly save annotations after a change in the protocol.
73
71
74
-
75
72
### Deploy server
76
73
77
74
To run a server you have 2 possibilities:
78
75
79
76
#### 1. Run locally on your machine
80
-
Locally you can start a server with
77
+
78
+
Locally you can start a server with
79
+
81
80
```sh
82
-
flask start
81
+
flask run
83
82
```
83
+
84
84
and visit http://127.0.0.1:5000 in your favorite browser and login with your admin account.
85
85
However it is very ill advised to use this with an open port in a production environment.
86
86
87
87
#### 2. Deploy in a production environment
88
+
88
89
When running HUMAN in a production environment on a server we recommend using gunicorn (included in the environment). First, you should set a secure SECRET_KEY in config.py. The script `start_server.sh` should take care of starting the server.
89
90
90
91
For docker refer to the [https://github.com/uds-lsv/human/wiki/Docker/](wiki).
0 commit comments