Guénaël Muller před 6 roky
rodič
revize
38d8223ce8
2 změnil soubory, kde provedl 76 přidání a 52 odebrání
  1. 76 0
      README.md
  2. 0 52
      README.txt

+ 76 - 0
README.md Zobrazit soubor

@@ -0,0 +1,76 @@
1
+[![Build Status](https://travis-ci.org/tracim/tracim_backend.svg?branch=master)](https://travis-ci.org/tracim/tracim_backend)
2
+[![Coverage Status](https://coveralls.io/repos/github/tracim/tracim_backend/badge.svg?branch=master)](https://coveralls.io/github/tracim/tracim_backend?branch=master)
3
+[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/tracim/tracim_backend/badges/quality-score.png?b=master)](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

+ 0 - 52
README.txt Zobrazit soubor

@@ -1,52 +0,0 @@
1
-tracim_backend
2
-==============
3
-
4
-This code is Work in progress. Not usable at all for production.
5
-
6
-Backend source code of tracim v2, using Pyramid Framework.
7
-
8
-Getting Started
9
----------------
10
-
11
-- Change directory into your newly created project.
12
-
13
-    cd tracim
14
-
15
-- Create a Python virtual environment.
16
-
17
-    python3 -m venv env
18
-
19
-- Upgrade packaging tools.
20
-
21
-    env/bin/pip install --upgrade pip setuptools
22
-
23
-- Install the project in editable mode with its testing requirements.
24
-
25
-    env/bin/pip install -e ".[testing]"
26
-
27
-- Configure the database.
28
-
29
-    env/bin/initialize_tracim_db development.ini
30
-
31
-- Run your project's tests.
32
-
33
-    env/bin/pytest
34
-
35
-- Run your project.
36
-
37
-    env/bin/pserve development.ini
38
-
39
-- Run mypy checks
40
-
41
-    mypy --ignore-missing-imports --disallow-untyped-defs tracim
42
-
43
-- Run pep8 checks
44
-
45
-    pep8 tracim
46
-
47
-CI
48
----
49
-
50
-* Code quality: https://scrutinizer-ci.com/g/tracim/tracim_backend/
51
-* Test validation: https://travis-ci.org/tracim/tracim_backend
52
-* Code coverage: https://coveralls.io/github/tracim/tracim_backend