Chapter 13: initial samples
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const express = require("express");
|
||||
const app = express();
|
||||
const debug = require("debug")("my-server");
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
debug("HTTP GET request to /");
|
||||
res.send("Hello World!");
|
||||
});
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log("Server listening on port 3000");
|
||||
});
|
||||
Reference in New Issue
Block a user