chapter 5: add initial samples

This commit is contained in:
Beth Griggs
2020-04-13 15:49:16 +01:00
parent 583e10b98e
commit 503edc4ec2
90 changed files with 4716 additions and 1039 deletions
+11
View File
@@ -0,0 +1,11 @@
import express from 'express'
import { name } from './get-name/index.mjs'
const PORT = 3000;
const app = express();
app.get('/', (req, res) => res.send(`Hello from ${name}!`))
app.listen(PORT, () => {
console.log("Express server started on port", PORT);
})