Node, AJAX and JQuery Lab
- Login to a lab system (not cslinux)
- Download and unzip this
# Launch a terminal and then
cd guessGameAjaxNode
nodejs guessGame.js
- Play with the node application using the following URLs
http://localhost:8000/newGame
http://localhost:8000/play/?guess=5
http://localhost:8000/play/?guess=6
http://localhost:8000/history/
- Go to http://localhost:8000, note that it is serving static content
- Take a look at static-content/index.html, note that it uses guessGameClient.js
- Complete the application in static-content/guessGameClient.js so that it functions as below...
- Your stuck? See guessGameClient.srt in the static-content directory. This is the solutions files sorted.