HTML and CSS Reference
In-Depth Information
Figure E.3. Application file layout with modules installed
Now you're going to create an application that's going to try loading all three of these mod-
ules and show a message if it is successful. This will tell you the modules have been in-
stalled correctly. The result is shown in figure E.4 .
Figure E.4. If you see this page, everything is working correctly.
The following listing is the app.js file in figure E.3 . Create a new working directory and
add app.js to it. When you run it with Node, it'll attempt to load all the modules you've
installed and create a simple page.
 
 
Search WWH ::




Custom Search