Book Image

Learning Node.js for Mobile Application Development

Book Image

Learning Node.js for Mobile Application Development

Overview of this book

Table of Contents (21 chapters)
Learning Node.js for Mobile Application Development
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
14
Creating an E-Commerce Application Using the Ionic Framework
Index

Chapter 2. Configuring Persistence with MongoDB

In this chapter, we will show you how to configure the persistence layer of your app, which is responsible for the provision of the central data storage and retrieval services. For this, we will use MongoDB, the widely popular NoSQL database, and its associated driver and interface for Node.js.

In this chapter, we'll cover the following topics:

  • Configuring documents, collections, and databases

  • Connecting to MongoDB using a product order database as an example

  • Creating relations between documents

  • Querying data and displaying results in the command line