Chapter 9
Riding on the Express Train
IN THIS CHAPTER
Getting started with Express
Making server-side routes
Using and creating middleware
Creating an Express API server
Using a template engine to serve views
Benefiting from the express application generator
“The speed of light sucks.”
—JOHN CARMACK
Express is the most popular Node.js web application framework. Whether you're building an API server or a web application server with Node.js, Express greatly simplifies working with HTTP, templates, and routes.
In this chapter, I show you how to start working with Express and how to use Express to create server-side web applications.
Installing Express
To install Express, you can use an existing Node.js package or create a new one (using npm init) and then enter npm install express.
Get JavaScript All-in-One For Dummies 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.