Testing the template

To test the template, we will follow these steps:

  1. Inside the initial directory, run the node app.js command.
  2. Now, in a browser, open the http://localhost:8080/ URL. You should see this output:
    Testing the template
  3. Now, type something in the search box and click on the Search button. You should then see this output:
    Testing the template
  4. Now, enter an invalid path in the address bar. You should be able to see this output:

    Testing the template

Get JavaScript: Moving to ES2015 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.