From 5c7adbe2f8469544dc59c7222170bde6785dc813 Mon Sep 17 00:00:00 2001 From: Kristyn Bryan Date: Mon, 13 Jun 2016 21:52:10 -0400 Subject: [PATCH] Update homework_instructions.md --- .../Pokeman_Starter/homework_instructions.md | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/unit_02/w05d02/homework/Pokeman_Starter/homework_instructions.md b/unit_02/w05d02/homework/Pokeman_Starter/homework_instructions.md index 18fead9..897190c 100644 --- a/unit_02/w05d02/homework/Pokeman_Starter/homework_instructions.md +++ b/unit_02/w05d02/homework/Pokeman_Starter/homework_instructions.md @@ -20,9 +20,19 @@ The views folder is empty, and it's up to you to make the appropriate folders an - `npm install --save express` - in `server.js` set up your server according to the prompts - `npm install --save ejs` + +**Commit 1**
+
+"Commit 1: Installed express and ejs." +
Your `server.js` will have two routes, one for displaying an index of all the pokemon, and one for showing a single pokemon according to the user's input. +**Commit 2**
+
+"Commit 2: Created two routes. One for the index of all pokeman and one for a single pokeman." +
+ - Make the views. Make sure you installed ejs. ### Views @@ -35,13 +45,25 @@ This view will show the data of a single pokemon. Using ejs, this view should di - The pokemon's name - The image of the pokemon +**Commit 3**
+
+"Commit 3: Created the show view." +
Next, make your `index.ejs` view. This view will show only the names of each pokemon. All 151 images. (You'll need to use a loop in the ejs). +**Commit 4**
+
+"Commit 4: Created the index view." +
## BONUS When the user clicks on a pokemon's name, they will be taken to that pokemon's show page. You can use an `` tag to accomplish this. - \ No newline at end of file + **Commit 5**
+
+"Commit 5: BONUS: Created a way for users to click on a pokeman's name and redirect to their show page." +
+