Add simple FastAPI backend

This commit is contained in:
Luke Calladine
2026-01-12 16:29:06 +00:00
parent 6ae7b7327e
commit ce73a77783
4 changed files with 33 additions and 0 deletions

11
backend/src/main.py Normal file
View File

@@ -0,0 +1,11 @@
from fastapi import FastAPI
app = FastAPI(title="HanchuESS Solar Backend API")
@app.get("/", tags=["Root"])
def root():
return {"message": "Welcome to the HanchuESS Solar Backend API!"}
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8050)