13 lines
243 B
JavaScript
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}/`);
|
|
});
|