Files
ecoconnect/server/index.js
2024-06-18 14:45:31 +08:00

13 lines
243 B
JavaScript

import express from "express";
const app = express();
const PORT = 3000;
app.get("/", (req, res) => {
res.send("Hello from Express!");
});
app.listen(PORT, () => {
console.log(`Express server running at http://localhost:${PORT}/`);
});