Summary
In this chapter, you gained your first Node.js experience, starting from a simple Hello world
application and moving on to a more complex sample HTTP server-like application that handles incoming HTTP requests. Being more confident with Node.js, you refactored the application to use user modules, and then created unit tests for your module using a mocking framework to eliminate dependencies on complex objects in your test environment.
Now that you've understood how to handle and test incoming HTTP requests, in the next chapter, our next step will be to define what a typical web API looks like and how it can be tested.