Initial commit: Projektstruktur mit Backend & Frontend

This commit is contained in:
2025-08-16 19:47:27 +00:00
commit 71f61b7bd2
10 changed files with 135 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const express = require("express");
const axios = require("axios");
const app = express();
const PORT = 3000;
app.get("/api/stacks", async (req, res) => {
try {
res.json([{ name: "stack1" }, { name: "stack2" }]);
} catch (err) {
res.status(500).json({ error: err.message });
}
});
app.listen(PORT, () => {
console.log(\`Backend läuft auf http://localhost:\${PORT}\`);
});