diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..e69de29b diff --git a/README.md b/README.md index 09167be4..65898c33 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # StackHub -StackHub is for opensource stacks automation. +本项目开发中... + +StackHub is for opensource stacks automation, it is developing... ## Funtction diff --git a/api/main.py b/api/main.py new file mode 100644 index 00000000..a4903ebd --- /dev/null +++ b/api/main.py @@ -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} \ No newline at end of file diff --git a/cli/README.md b/cli/README.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/PRD b/docs/PRD new file mode 100644 index 00000000..afd9d74e --- /dev/null +++ b/docs/PRD @@ -0,0 +1,3 @@ +架构:后台JS框架+后端Python提供API服务 + +后端:Python, Docker, Docker-compose, FastAPI, Typer \ No newline at end of file diff --git a/docker-installer.sh b/scripts/docker-installer.sh similarity index 100% rename from docker-installer.sh rename to scripts/docker-installer.sh diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 00000000..e69de29b