This commit is contained in:
chendelin1982 2021-08-27 18:15:17 +08:00
parent e0ecb8c213
commit 42b1602754
7 changed files with 21 additions and 1 deletions

0
CONTRIBUTING.md Normal file
View file

View file

@ -1,6 +1,8 @@
# StackHub # StackHub
StackHub is for opensource stacks automation. 本项目开发中...
StackHub is for opensource stacks automation, it is developing...
## Funtction ## Funtction

15
api/main.py Normal file
View file

@ -0,0 +1,15 @@
from typing import Optional
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/items/{item_id}")
def read_item(item_id: int, q: Optional[str] = None):
return {"item_id": item_id, "q": q}

0
cli/README.md Normal file
View file

3
docs/PRD Normal file
View file

@ -0,0 +1,3 @@
架构后台JS框架+后端Python提供API服务
后端Python, Docker, Docker-compose, FastAPI, Typer

0
tests/README.md Normal file
View file