Data comes in many shapes and sizes. It can come from within your application as it works, from users, or from outside data stores. As with the rest of Node.js, there is an npm package to deal individually with each of the myriad ways data might be provided to your application.
In general, this data can be broken into three major categories, with each having a couple of primary ways that data would likely come to you:
Data from URLs
- Route/Path pattern
Data from users
- Form posts
- Field input
Data from external sources
- Databases (covered in Chapter 6, “Working with external data in Node.js”)
- File systems (covered in Chapter 7, “Working with file data in Node.js”)
We’ll walk through these and incorporate them into your Node.js application.
Find the complete chapter here: https://www.microsoftpressstore.com/articles/article.aspx?p=2320939.