The first step before we start developing the user stories is to install and run the server. The server will expose the RESTful APIs for our products grid application. We will use Node.js as the server.
Note
Node.js is a server-side JavaScript-based platform for building network applications. You can learn about Node.js at https://nodejs.org/.
To install and run the server, perform the following steps:
Download and install
node.js
from https://nodejs.org/.Create a folder for server module. Let's call it
ProductsServer
.Navigate to the
ProductsServer
folder and install theRestify
module usingnpm
.Download
products-server.js
fromchapter8\server
to theProductsServer
folder.To test that the server is ready, open the browser and access
http://localhost:8080/products
. You should see the list of products in JSON format.