Hour 7. More on Express

What You’ll Learn in This Hour:

• How routing works in Express

• Adding routes in Express

• Using parameters in routes

• Passing data to the view layer

• Displaying data in the view layer

Routing in Web Applications

Routing describes whether and how an application should respond to certain Hypertext Transfer Protocol (HTTP) requests. Your browser makes these requests when you are interacting with an application or website.

Routing is just a term for defining the end points for HTTP requests in an application. So, if you want your application to be able to do something, you need to set up a route for it!

How Routing Works in Express

Express uses HTTP verbs to define routes. HTTP verbs describe the type of request that ...

Get Sams Teach Yourself Node.js in 24 Hours 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.