From ca8064bf04c12b5f201a8ee82447a3bcbebc345e Mon Sep 17 00:00:00 2001 From: Homayed Date: Sun, 28 Jun 2026 22:00:35 +0100 Subject: [PATCH] Set up FastAPI backend foundation --- backend/main.py | 15 +++++++++++++++ backend/requirements.txt | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 backend/main.py create mode 100644 backend/requirements.txt diff --git a/backend/main.py b/backend/main.py new file mode 100644 index 0000000..c75295f --- /dev/null +++ b/backend/main.py @@ -0,0 +1,15 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def home(): + return { + "message": "Hello" + } + +@app.get("/health") +def health(): + return { + "status":"ok" + } \ No newline at end of file diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..2ef6c2c --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,13 @@ +annotated-doc==0.0.4 +annotated-types==0.7.0 +anyio==4.14.1 +click==8.4.2 +fastapi==0.138.1 +h11==0.16.0 +idna==3.18 +pydantic==2.13.4 +pydantic_core==2.46.4 +starlette==1.3.1 +typing-inspection==0.4.2 +typing_extensions==4.15.0 +uvicorn==0.49.0