Skip to content

Commit 08f8b3d

Browse files
committed
chore(common): add an example project
1 parent 65d5bf0 commit 08f8b3d

File tree

7 files changed

+453
-0
lines changed

7 files changed

+453
-0
lines changed

example/my-app/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

example/my-app/README.md

Whitespace-only changes.

example/my-app/manifest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
applications:
3+
- name: my-app
4+
memory: 256M
5+
disk_quota: 512M
6+
instances: 1
7+
buildpacks:
8+
- https://github.com/NickChecan/uv-python-buildpack
9+
random-route: true

example/my-app/pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[project]
2+
name = "my-app"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"fastapi>=0.135.3",
9+
"uvicorn[standard]>=0.44.0",
10+
]
11+
12+
[project.scripts]
13+
start = "my_app.main:start"
14+
15+
[build-system]
16+
requires = ["uv_build>=0.11.5,<0.12.0"]
17+
build-backend = "uv_build"

example/my-app/src/my_app/__init__.py

Whitespace-only changes.

example/my-app/src/my_app/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from fastapi import FastAPI
2+
import uvicorn
3+
4+
app = FastAPI()
5+
6+
7+
@app.get("/")
8+
def hello_world():
9+
return {"message": "Hello, World!"}
10+
11+
def start() -> None:
12+
uvicorn.run("my_app.main:app", host="0.0.0.0", port=8000, reload=True)

example/my-app/uv.lock

Lines changed: 414 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)