Preparing for this chapter
This chapter uses the part2app
project created in Chapter 9. No changes are required to prepare for this chapter. Open a command prompt and run the command shown in Listing 10.1 in the part2app
folder to start the development tools.
Tip
You can download the example project for this chapter – and for all the other chapters in this book – from https://github.com/PacktPublishing/Mastering-Node.js-Web-Development. See Chapter 1 for how to get help if you have problems running the examples.
Listing 10.1: Starting the development tools
npm start
Open a web browser, request http://localhost:5000
, and click the Send Request button. The browser will send a request to the backend server and display details of the results, as shown in Figure 10.1.
Figure 10.1: Running the example application