From 42b16027543ddb55b18b1870d8a7df1da3eb5e98 Mon Sep 17 00:00:00 2001 From: chendelin1982 Date: Fri, 27 Aug 2021 18:15:17 +0800 Subject: [PATCH] create --- CONTRIBUTING.md | 0 README.md | 4 +++- api/main.py | 15 +++++++++++++++ cli/README.md | 0 docs/PRD | 3 +++ .../docker-installer.sh | 0 tests/README.md | 0 7 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 CONTRIBUTING.md create mode 100644 api/main.py create mode 100644 cli/README.md create mode 100644 docs/PRD rename docker-installer.sh => scripts/docker-installer.sh (100%) create mode 100644 tests/README.md 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