From 7109200e1cf58804bb0289a7e3474607bfcf4988 Mon Sep 17 00:00:00 2001 From: kibin Date: Mon, 16 Mar 2026 06:07:41 +0000 Subject: [PATCH] Initial commit: add main.py --- main.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..23776ba --- /dev/null +++ b/main.py @@ -0,0 +1,38 @@ +from fastapi import FastAPI +from fastapi.responses import HTMLResponse + +app = FastAPI(title="TapTrack", description="RFID Student Attendance & Parent Notification System") + +@app.get("/", response_class=HTMLResponse) +def root(): + return """ + + + TapTrack + + + +
+

๐ŸŽ“ TapTrack

+

RFID Student Attendance & Parent Notification System

+
โœ… Running on Coolify
+

+

Built by Kibin ยท Powered by FastAPI

+
+ + + """ + +@app.get("/health") +def health(): + return {"status": "ok", "app": "TapTrack", "version": "0.1.0"} + +@app.get("/api/v1/ping") +def ping(): + return {"message": "pong", "service": "TapTrack API"}