Databases Reference
In-Depth Information
If you want to go through this chapter while playing with the example,
you should first read Appendix C .
The Node.js Web Application
We have mocked up a simple e-commerce website with three pages: a home page, a
product page, and a product statistics page. This application is implemented using the
Express Framework and Socket.io Framework to push updates to the browser. The
idea of the application is to let you play with the cluster and see the results, but it's not
the focus of this topic, so we won't go into any more detail than a description of the
pages it has.
The Home Page
This page provides links to all the products available on the platform to ease nav-
igation between them. It lists all the items and reads them from the Redis Server.
The URL for this page is http://localhost:3000/ . (See Figure 6-2 .)
Figure 6-2. Home page
 
Search WWH ::




Custom Search