The example code can be found in the chapter3_1.zip attachment.
Unpack the zip, change into the directory, run npm install and npm start, and open http://localhost:8080 in your browser.