- Notifications
You must be signed in to change notification settings - Fork1k
Example application code for the python architecture book
License
cosmicpython/code
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Each chapter has its own branch which contains all the commits for that chapter,so it has the state that corresponds to theend of that chapter.If you want to try and code along with a chapter,you'll want to check out the branch for the previous chapter.
https://github.com/cosmicpython/code/branches/all
Branches for the exercises follow the convention{chapter_name}_exercise
,eghttps://github.com/cosmicpython/code/tree/chapter_04_service_layer_exercise
- docker with docker-compose
- for chapters 1 and 2, and optionally for the rest: a local python3.8 virtualenv
(this is only required from chapter 3 onwards)
make buildmake up# ormake all# builds, brings containers up, runs tests
python3.8 -m venv .venv&&source .venv/bin/activate# or however you like to create virtualenvs# for chapter 1pip install pytest# for chapter 2pip install pytest sqlalchemy# for chapter 4+5pip install -r requirements.txt# for chapter 6+pip install -r requirements.txtpip install -e src/
maketest# or, to run individual test typesmake unit-testsmake integration-testsmake e2e-tests# or, if you have a local virtualenvmake uppytest tests/unitpytest tests/integrationpytest tests/e2e
There are more useful commands in the makefile, have a look and try them out.
About
Example application code for the python architecture book
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.