From b51c19716a7ed8f19ce5a43de6ca8b5ecd85dbf7 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 6 Jul 2023 10:02:54 +0100 Subject: [PATCH] setup minimal template application --- backend/README.md | 3 +++ backend/main.py | 8 ++++++++ backend/requirements.txt | 17 +++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 backend/README.md create mode 100644 backend/main.py create mode 100644 backend/requirements.txt diff --git a/backend/README.md b/backend/README.md new file mode 100644 index 00000000..ba119e14 --- /dev/null +++ b/backend/README.md @@ -0,0 +1,3 @@ +# Backend +This is the api service that will supply the frontend with the insights that are driven by the machine +learning and data modelling services. \ No newline at end of file diff --git a/backend/main.py b/backend/main.py new file mode 100644 index 00000000..ee60be1f --- /dev/null +++ b/backend/main.py @@ -0,0 +1,8 @@ +from fastapi import FastAPI + +app = FastAPI() + + +@app.get("/") +async def root(): + return {"message": "Hello World"} diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 00000000..d25af873 --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,17 @@ +anyio==3.7.1 +click==8.1.3 +exceptiongroup==1.1.2 +fastapi==0.99.1 +h11==0.14.0 +httptools==0.5.0 +idna==3.4 +pydantic==1.10.11 +python-dotenv==1.0.0 +PyYAML==6.0 +sniffio==1.3.0 +starlette==0.27.0 +typing_extensions==4.7.1 +uvicorn==0.22.0 +uvloop==0.17.0 +watchfiles==0.19.0 +websockets==11.0.3