CHAPTER 2

image

Hello World Example

In this chapter, to help you get your feet wet using Express.js, we’ll build the quintessential programming example—the Hello World app. If you’ve already built some variation of this Express.js app (perhaps by following an online tutorial), feel free to skip to the next chapter and go either to Chapter 3 for the API methods and objects, or to Chapter 19-22 for examples. The topics covered in this chapter are as follow:

  • Getting started: creating the minimal Express.js app from scratch
  • Generator commands: command-line options of Express.js Generator
  • MVC structure and modules: a common way to organize code for Express.js ...

Get Pro Express.js 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.