Difference between revisions of "WebFund 2016W: Tutorial 10"

From Soma-notes
Jump to navigation Jump to search
Line 18: Line 18:


   npm rebuild
   npm rebuild
* Remember the app is listening on https.  Thus, visit [https://localhost:3000].  If you see "www.localhost.com", you probably tried to visit the app over http.

Revision as of 12:36, 31 March 2016

This tutorial is optional.

In this tutorial you should either make progress on Assignment 6 or you should spend your time trying to understand Look at and understand exam-storage.

Note that the code for exam-storage is a guide for solving Assignment 6!

In looking at exam-storage, you should try and understand every line of the code. Do you know what will happen to the program when any line is removed? Also, try and make changes such as adding word counts and adding a delete command for each file.

Hints

  • This code requires a newer version of node. If you run "node --version" you should get 5.9.X. Older versions of the class VM may have older versions. To update:
 curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
 sudo apt-get install -y nodejs
  • You may need to rebuild the node modules to work in your environment. Do this *after* updating your node version. Run:
 npm rebuild
  • Remember the app is listening on https. Thus, visit [1]. If you see "www.localhost.com", you probably tried to visit the app over http.