Chapter 10: Benchmarking recipe

This commit is contained in:
Beth Griggs
2020-08-14 13:34:15 +01:00
parent 2c7cf712f8
commit d74bfe94dc
19 changed files with 1509 additions and 0 deletions
@@ -0,0 +1,16 @@
const express = require("express");
const app = express();
const bodyParser = require("body-parser");
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.post("/", (req, res) => {
res.send(req.body);
});
app.listen(3000, () => {
console.log("Server listening on port 3000");
});