initial commit

This commit is contained in:
2026-01-27 19:47:41 +01:00
parent ca2dbe5a21
commit a1cd4191a5
6 changed files with 899 additions and 1 deletions

19
backend/server.js Normal file
View File

@@ -0,0 +1,19 @@
import express from "express";
import cors from "cors";
const app = express();
const port = 9001;
app.use(cors());
app.use(express.json());
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});
// error handling code
app.use((err, req, res, next) => {
console.error(err.stack);
res.status(500).send("Something broke!");
});