From 2e248f91803840e881d4b44455c65405832124a5 Mon Sep 17 00:00:00 2001 From: Kristyn Bryan Date: Thu, 9 Jun 2016 17:35:07 -0400 Subject: [PATCH] Update README.md --- unit_02/w05d02/homework/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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