33 lines
489 B
Markdown
33 lines
489 B
Markdown
# python-fun
|
|
|
|
A training project for learning functional programming in Python through Domain-Driven Design, based on *"Hands-on Domain Driven Design with .NET Core"*.
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
python -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install -e .
|
|
```
|
|
|
|
## Run the server
|
|
|
|
```bash
|
|
uvicorn main:app --reload
|
|
```
|
|
|
|
The health check endpoint is available at `http://localhost:8000/`.
|
|
|
|
## Run tests
|
|
|
|
```bash
|
|
pytest tests/
|
|
```
|
|
|
|
## Lint & format
|
|
|
|
```bash
|
|
ruff check .
|
|
ruff format --check .
|
|
```
|