### Build and Run Docker Containers Source: https://github.com/cosmicpython/code/blob/master/README.md Commands to build Docker containers for the project and bring them up. The 'make all' command is a shortcut that builds, brings containers up, and runs tests. This is primarily required from chapter 3 onwards. ```sh make build make up # or make all # builds, brings containers up, runs tests ``` -------------------------------- ### Create Local Virtual Environment and Install Dependencies Source: https://github.com/cosmicpython/code/blob/master/README.md Instructions for creating a local Python virtual environment and installing project dependencies using pip. Specific dependencies are listed for different chapters, including pytest, SQLAlchemy, and requirements.txt. ```sh python3.8 -m venv .venv && source .venv/bin/activate # or however you like to create virtualenvs # for chapter 1 pip install pytest # for chapter 2 pip install pytest sqlalchemy # for chapter 4+5 pip install -r requirements.txt # for chapter 6+ pip install -r requirements.txt pip install -e src/ ``` -------------------------------- ### Run Project Tests Source: https://github.com/cosmicpython/code/blob/master/README.md Commands to execute the project's tests using make targets or directly with pytest. Supports running all tests, individual test types (unit, integration, e2e), or specific test suites within a local virtual environment. ```sh make test # or, to run individual test types make unit-tests make integration-tests make e2e-tests # or, if you have a local virtualenv make up pytest tests/unit pytest tests/integration pytest tests/e2e ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.