Hour 8. Persisting Data

What You’ll Learn in This Hour:

• Read data from a file

• Write data to a file

• Read environment variables

• Store data with MongoDB

• Create a CRUD (Create, Read, Update, Delete) application with Express and MongoDB

What Is Persistent Data?

In web applications, the term persistent data refers to data that is saved somewhere and can be used by the application at a point in the future.

Examples of persistent data include

• Items in a shopping cart

• A user’s account details

• Order history

• Credit card details

There are many ways that this data can be stored:

• On a hard disk or flash drive

• In the memory of a computer

• In a database

• In a cookie or session

As you develop Node.js applications, you will quickly come ...

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.