Skip to content

Commit c60b7a6

Browse files
Merge pull request #314 from AndreWohnsland/dev
Add uv sub project into microservice
2 parents 1706767 + 9efafed commit c60b7a6

File tree

5 files changed

+50
-4
lines changed

5 files changed

+50
-4
lines changed

microservice/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CocktailBerry Microservice
2+
3+
This is the subdirectory for the CocktailBerry microservice.
4+
It contains the code for the according optional microservice to move some (not core) tasks from the main app.
5+
It is also used to decouple external calls (e.g. to Webhooks or the dashboard) from the main app.
6+
The microservice is written in Python and uses FastAPI as the web framework.
7+
8+
## Getting Started
9+
10+
Use uv to run the microservice locally:
11+
12+
```bash
13+
uv run app.py
14+
```

microservice/pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[project]
2+
name = "microservice"
3+
version = "1.0.0"
4+
description = "Microservice for CocktailBerry"
5+
readme = "README.md"
6+
requires-python = ">=3.11"
7+
dependencies = [
8+
"fastapi[standard]>=0.115.5",
9+
"python-dotenv>=1.0.1",
10+
"requests>=2.32.3",
11+
"uvicorn>=0.32.1",
12+
]

microservice/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
fastapi[standard]==0.115.6
1+
fastapi[standard]==0.115.12
22
uvicorn==0.34.0
3-
requests==2.31.0
4-
python-dotenv==1.0.1
3+
requests==2.32.3
4+
python-dotenv==1.1.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extra-index-url = [
6161
]
6262

6363
[tool.uv.workspace]
64-
members = ["dashboard"]
64+
members = ["dashboard", "microservice"]
6565

6666
[tool.hatch.metadata]
6767
allow-direct-references = true

uv.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)