Lesson 5. Handling incoming data

In lesson 4, I introduced you to the web server and showed how you can create one with Node.js. Every time a user visits a URL that leads to your application, a request is made, and each request must be processed by the code you write. In this lesson, you learn how to gather and process some of the information in these requests. You also build application routes—code logic to match requests with appropriate responses.

This lesson covers

  • Collecting and processing request data
  • Submitting a POST request with the curl command
  • Building a web application with basic routes
Consider this

As you plan web pages for your recipe application, you realize that the basic web server you’ve built knows how to ...

Get Get Programming with Node.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.