|
@@ -0,0 +1,76 @@
|
|
1
|
+[](https://travis-ci.org/tracim/tracim_backend)
|
|
2
|
+[](https://coveralls.io/github/tracim/tracim_backend?branch=master)
|
|
3
|
+[](https://scrutinizer-ci.com/g/tracim/tracim_backend/?branch=master)
|
|
4
|
+
|
|
5
|
+tracim_backend
|
|
6
|
+==============
|
|
7
|
+
|
|
8
|
+This code is Work in progress. Not usable at all for production.
|
|
9
|
+
|
|
10
|
+Backend source code of tracim v2, using Pyramid Framework.
|
|
11
|
+
|
|
12
|
+Installation
|
|
13
|
+---------------
|
|
14
|
+
|
|
15
|
+### Distribution dependencies ###
|
|
16
|
+
|
|
17
|
+TODO
|
|
18
|
+
|
|
19
|
+### Setup Python Virtualenv ###
|
|
20
|
+
|
|
21
|
+- Go to *tracim* subdirectory:
|
|
22
|
+
|
|
23
|
+ cd tracim
|
|
24
|
+
|
|
25
|
+- Create a Python virtual environment:
|
|
26
|
+
|
|
27
|
+ python3 -m venv env
|
|
28
|
+
|
|
29
|
+- Activate it in your terminal session (**all tracim command execution must be executed under this virtual environment**):
|
|
30
|
+
|
|
31
|
+ source env/bin/activate
|
|
32
|
+
|
|
33
|
+- Upgrade packaging tools:
|
|
34
|
+
|
|
35
|
+ pip install --upgrade pip setuptools
|
|
36
|
+
|
|
37
|
+- Install the project in editable mode with its testing requirements:
|
|
38
|
+
|
|
39
|
+ pip install -e ".[testing]"
|
|
40
|
+
|
|
41
|
+### Configure Tracim_backend ###
|
|
42
|
+
|
|
43
|
+- Create configuration files for a development environment:
|
|
44
|
+
|
|
45
|
+ cp development.ini.base development.ini
|
|
46
|
+
|
|
47
|
+- Initialize the database.
|
|
48
|
+
|
|
49
|
+ initialize_tracim_db development.ini
|
|
50
|
+
|
|
51
|
+### Run Tracim_backend ###
|
|
52
|
+
|
|
53
|
+- Run your project:
|
|
54
|
+
|
|
55
|
+ pserve development.ini
|
|
56
|
+
|
|
57
|
+### Run Tests and others checks ###
|
|
58
|
+
|
|
59
|
+- Run your project's tests:
|
|
60
|
+
|
|
61
|
+ pytest
|
|
62
|
+
|
|
63
|
+- Run mypy checks:
|
|
64
|
+
|
|
65
|
+ mypy --ignore-missing-imports --disallow-untyped-defs tracim
|
|
66
|
+
|
|
67
|
+- Run pep8 checks:
|
|
68
|
+
|
|
69
|
+ pep8 tracim
|
|
70
|
+
|
|
71
|
+CI
|
|
72
|
+---
|
|
73
|
+
|
|
74
|
+* Code quality: https://scrutinizer-ci.com/g/tracim/tracim_backend/
|
|
75
|
+* Test validation: https://travis-ci.org/tracim/tracim_backend
|
|
76
|
+* Code coverage: https://coveralls.io/github/tracim/tracim_backend
|