From zero
This commit is contained in:
12
server/index.js
Normal file
12
server/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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}/`);
|
||||
});
|
||||
Reference in New Issue
Block a user