This commit is contained in:
counterweight 2025-12-18 21:37:28 +01:00
commit a764c92a0b
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
11 changed files with 1081 additions and 0 deletions

21
frontend/app/page.tsx Normal file
View file

@ -0,0 +1,21 @@
"use client";
import { useEffect, useState } from "react";
export default function Home() {
const [message, setMessage] = useState("");
useEffect(() => {
fetch("http://localhost:8000/api/hello")
.then((res) => res.json())
.then((data) => setMessage(data.message));
}, []);
return (
<main style={{ padding: "2rem", fontFamily: "system-ui" }}>
<h1>FastAPI + Next.js</h1>
<p>{message || "Loading..."}</p>
</main>
);
}