Update README.md

master
Kristyn Bryan 10 years ago committed by GitHub
parent 0626aa6541
commit d5eebe3810

@ -39,11 +39,11 @@ Prerequisites: Javascript <br>
<br> <br>
#Magic 8 Ball APP #Magic 8 Ball APP
- Create an express application. - Create an express application.
- Create a route of `'/magic'` that should expect one parameter which is a question to ask the 8ball. - Create a route of `'/magic'` that should expect a phrase in the URL that ask the Magic 8 ball a question.
- The params of the route should be a question. (ex. `'/magic/Will%20I%20Be%20A%20Millionaire'`) - So if the user hits that route and asks a question of "Will I be a Millionaire" (ex. `'/magic/Will%20I%20Be%20A%20Millionaire'`) he should have return to him his question AND a random Magic 8 ball response (see the array below) on the screen.
- Remember that we can't use spaces in the url, so we use `%20` to express a space in the url. - Remember that we can't use spaces in the url, so we use `%20` to express a space in the url.
- So if the user hits that route and asks a question of "Will I be a Millionaire" he should get his question asked and a random 8ball quote on the screen. - So if the user hits that route and asks a question of "Will I be a Millionaire" he should get his question asked and a random Magic 8 ball quote on the screen.
- Use this array of 8ball quotes..... - Use this array of Magic 8 ball responses.....
``` ```
["It is certain", "It is decidedly so", "Without a doubt", "Yes definitely","You may rely on it", "As I see it yes", "Most likely", "Outlook good","Yes", "Signs point to yes", "Reply hazy try again", "Ask again later","Better not tell you now", "Cannot predict now", "Concentrate and ask again","Don't count on it", "My reply is no", "My sources say no","Outlook not so good", "Very doubtful"] ["It is certain", "It is decidedly so", "Without a doubt", "Yes definitely","You may rely on it", "As I see it yes", "Most likely", "Outlook good","Yes", "Signs point to yes", "Reply hazy try again", "Ask again later","Better not tell you now", "Cannot predict now", "Concentrate and ask again","Don't count on it", "My reply is no", "My sources say no","Outlook not so good", "Very doubtful"]
@ -54,6 +54,8 @@ Prerequisites: Javascript <br>
"Commit 2: Magic 8 Ball express application created." "Commit 2: Magic 8 Ball express application created."
<hr> <hr>
# Example express application
<hr> <hr>
## Views ## Views
Index Index

Loading…
Cancel
Save