initial server set up and read me file

This commit is contained in:
Mann Patel
2025-01-30 13:29:13 -07:00
parent 9097c20055
commit 3499f80d9c
5 changed files with 1045 additions and 1 deletions

14
server/index.js Normal file
View File

@@ -0,0 +1,14 @@
import express, { json } from "express";
import cors from "cors";
const app = express();
// Middleware
app.use(cors());
app.use(json());
// Sample Route
app.get("/api/test", (req, res) => {
res.json({ message: "Hello from server!" });
});
app.listen(3030, () => console.log(`Server running on port ${3030}`));