diff --git a/unit_02/w05d02/homework/README.md b/unit_02/w05d02/homework/README.md index 3a25400..509dbae 100644 --- a/unit_02/w05d02/homework/README.md +++ b/unit_02/w05d02/homework/README.md @@ -54,7 +54,18 @@ Prerequisites: Javascript
"Commit 2: Magic 8 Ball express application created."
-# Example express application +# Reminder on how to set up an express application +- Create a Javascript file (`.js`) for each express application (ex: `tip_calculator.js`). +- Inside your homework folder, install express `npm install --save express` +- Check your files. Hint: `ls`. If you have a `node_modules` folder with `express` somewhere inside, then you've successfully added express to your folder. +- Inside your Javascript file, +- + +``` +app.get('/greeting/:name', function(req, res) { + res.send({params: req.params, queries: req.query}) +}); +```
## Views