|
@@ -14,20 +14,23 @@ Installation
|
14
|
14
|
|
15
|
15
|
### Distribution dependencies ###
|
16
|
16
|
|
17
|
|
-on Debian Stretch (9) :
|
|
17
|
+on Debian Stretch (9) with sudo:
|
18
|
18
|
|
|
19
|
+ sudo apt update
|
19
|
20
|
sudo apt install git
|
20
|
|
- sudo apt install python3 python-virtualenv python3-dev python-pip
|
|
21
|
+ sudo apt install python3 python3-venv python3-dev python3-pip
|
21
|
22
|
|
22
|
23
|
### Get the source ###
|
23
|
24
|
|
|
25
|
+get source from github:
|
|
26
|
+
|
24
|
27
|
git clone https://github.com/tracim/tracim_backend.git
|
25
|
28
|
|
26
|
|
-### Setup Python Virtualenv ###
|
|
29
|
+go to *tracim_backend* directory:
|
27
|
30
|
|
28
|
|
-Go to *tracim* subdirectory:
|
|
31
|
+ pushd tracim_backend
|
29
|
32
|
|
30
|
|
- cd tracim
|
|
33
|
+### Setup Python Virtualenv ###
|
31
|
34
|
|
32
|
35
|
Create a Python virtual environment:
|
33
|
36
|
|
|
@@ -64,7 +67,7 @@ For mySQL:
|
64
|
67
|
|
65
|
68
|
Create [configuration file](doc/setting.md) for a development environment:
|
66
|
69
|
|
67
|
|
- cp development.ini.base development.ini
|
|
70
|
+ cp development.ini.sample development.ini
|
68
|
71
|
|
69
|
72
|
Initialize the database using [tracimcli](doc/cli.md) tool
|
70
|
73
|
|
|
@@ -76,6 +79,16 @@ Run your project:
|
76
|
79
|
|
77
|
80
|
pserve development.ini
|
78
|
81
|
|
|
82
|
+### Configure and Run Webdav Server (Unstable) ###
|
|
83
|
+
|
|
84
|
+create wsgidav configuration file :
|
|
85
|
+
|
|
86
|
+ cp wsgidav.conf.sample wsgidav.conf
|
|
87
|
+
|
|
88
|
+run wsgidav server:
|
|
89
|
+
|
|
90
|
+ tracimcli webdav start
|
|
91
|
+
|
79
|
92
|
### Run Tests and others checks ###
|
80
|
93
|
|
81
|
94
|
Run your project's tests:
|
|
@@ -88,7 +101,7 @@ Run mypy checks:
|
88
|
101
|
|
89
|
102
|
Run pep8 checks:
|
90
|
103
|
|
91
|
|
- pep8 tracim
|
|
104
|
+ pep8 tracim --exclude 'tracim/env'
|
92
|
105
|
|
93
|
106
|
Tracim API
|
94
|
107
|
----------
|