File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # Example application code for the python architecture book
2+
3+ ## Chapters
4+
5+ Each chapter has its own branch which contains all the commits for that chapter,
6+ so it has the state that corresponds to the _ end_ of that chapter. If you want
7+ to try and code along with a chapter, you'll want to check out the branch for the
8+ previous chapter.
9+
10+ https://github.com/python-leap/code/branches/all
11+
12+
13+ ## Exercises
14+
15+ Branches for the exercises follow the convention ` {chatper_name}_exercise ` , eg
16+ https://github.com/python-leap/code/tree/chapter_03_service_layer_exercise
17+
18+
19+ ## Requirements
20+
21+ * docker with docker-compose
22+ * for chapters 1 and 2, and optionally for the rest: a local python3.7 virtualenv
23+
24+
25+ ## Building the containers
26+
27+ _ (this is only required from chapter 3 onwards)_
28+
29+ ``` sh
30+ make build
31+ make up
32+ # or
33+ make all # builds, brings containers up, runs tests
34+ ```
35+
36+ ## Running the tests
37+
38+ ``` sh
39+ make test
40+ # or, to run individual test types
41+ make unit
42+ make integration
43+ make e2e
44+ # or, if you have a local virtualenv
45+ make up
46+ pytest tests/unit
47+ pytest tests/integration
48+ pytest tests/e2e
49+
50+
51+ # # Makefile
52+
53+ There are more useful commands in the makefile, have a look and try them out.
54+
You can’t perform that action at this time.
0 commit comments