Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 846 Bytes

File metadata and controls

68 lines (45 loc) · 846 Bytes

example-backend

Requirements

  • uv 0.6.4+

Installation

git clone https://github.com/kumarstack55/example-backend.git
cd ./example-backend
uv sync --frozen

Running Tests

pytest tests/test_message_factory.py

Running the Application

uv run app.py

Running with Modified Error Rates

OK_RATIO=0.9 uv run app.py

Building the Container Image

docker compose build

or

docker buildx build -t example-backend .

Running in a Container

docker run -p 8080:8080 example-backend

Running Tests for Container

At first, start the service.

docker compose up -d

Then, run the tests.

uv run pytest test_app.py

License

MIT License. See the LICENSE file for details.