O'Reilly logo

Sams Teach Yourself Node.js in 24 Hours by George Ornbo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required