PouchDB Playbook: Simplify Offline Web Application Storage

PouchDB is a great NoSQL database used for storing offline data for your web applications. You will learn to use PouchDB's consistent, promise-based API to simplify data management using JavaScript.
Course info
Level
Intermediate
Updated
Aug 3, 2018
Duration
1h 24m
Table of contents
Description
Course info
Level
Intermediate
Updated
Aug 3, 2018
Duration
1h 24m
Description

Offline web applications are becoming very prevalent today. In order to create an offline web application, you must take into account where to store data. A great option is to use PouchDB. In this course, PouchDB Playbook: Simplify Offline Web Application Storage, you will learn to store and retrieve data from a client-side database using PouchDB's NoSQL API. First, you will see how to add, edit, and delete documents, and perform bulk update and retrieval. Then, you will discover how to use Mango queries and the find() API. Finally, you will learn to use map and reduce queries to create design documents and gather statistics. By the time you are finished, you will have enough knowledge to start using PouchDB immediately in your own offline web application.

About the author
About the author

Paul loves teaching and technology, and has been teaching tech and business topics for over 30 years. Paul helps clients develop applications, and instructs them on the best use of technology.

More from the author
VB.NET Fundamentals
Beginner
3h 25m
May 21, 2019
XML Fundamentals in C#
Intermediate
1h 47m
Mar 27, 2019
More courses by Paul D. Sheriff
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello everyone. My name is Paul Sheriff, and welcome to my course PouchDB Playbook: Simplify Offline Web Application Storage. I'm a business solutions architect at Fairway Technologies with over 32 years of experience creating enterprise applications. Are you a web developer who needs to build an offline web application? Have you struggled with IndexedDB or WebSQL? If so, then PouchDB offers a great solution for you. In this course, you're going to learn how to use PouchDB instead of IndexedDB or WebSQL. This NoSQL database makes it easy to store and retrieve data in your browser. PouchDB uses a consistent promise-based API across all browsers as opposed to using callbacks. Some of the major topics we'll cover include add, edit, and delete documents, bulk updating and retrieving of documents, using Mango queries and the find API, using map queries and creating design documents, using reduce queries to gather statistics. By the end of this course, you'll know exactly how to store and retrieve data from a client-side database. Before beginning this course, you should be familiar with HTML, CSS, JavaScript, and jQuery. I hope you'll join me on your journey to create better offline web applications in my course PouchDB Playbook: Simplify Offline Web Application Storage at Pluralsight. com.

Getting Started withPouchDB
Hello everybody. Paul Sheriff here with Pluralsight. This course is PouchDB Playbook: Simplify Offline Web Application Storage. This module, Getting Started with PouchDB. The goals for this course are to learn to use PouchDB. We're going to see how to work with documents, we're going to perform bulk operations, we're going to do some indexing and querying of data, and we're going to create some design documents, and we're going to use map and reduce queries. For this course, I assume you know how to build web applications, that you know HTML and CSS, and that you are familiar with JavaScript and jQuery. I'm also assuming that you want to work with data offline, simplify IndexedDB, and use promises instead of callbacks for doing your offline storage. If you need help with any of these, there's several courses in the Pluralsight library you can take a look at. Some of them are Creating Offline-first Mobile Apps with HTML5, Getting Started with Progressive Web Apps, and HTML5 Web Storage, IndexedDB and File System.

Bulk Operations with PouchDB
Hello everybody. Paul Sheriff here with Pluralsight. This module is Bulk Operations with PouchDB. The goals for this particular module are to add multiple documents at one time, get all documents back, learn how to count how many documents are in your database, and, of course, search for documents. Let's get started.

Using Mango Queries in PouchDB
Hello everyone! Paul Sheriff here with Pluralsight. This module is Using Mango Queries in PouchDB. The goals for this particular module are to give you an overview of using Mango queries, we're going to great some secondary indexes, and we're then going to see several examples of using the find API. Let's get started!

Using Map Queries in PouchDB
Hello. My name is Paul Sheriff with Pluralsight. This module is Using Map Queries in PouchDB. The goals for this particular module are to learn about map queries, and we're going to talk about two different types, temporary queries and persistent queries, which we create using design documents. Let's get started.

Using Reduce Functions to Gather Statistics
Hello everyone. Paul Sheriff here with Pluralsight. This module is Using Reduce Queries to Gather Statistics. The goals for this particular module are to gather statistics that are contained within your documents. For example, you may want to count all documents or count filtered documents, you might want to sum invoice totals, you might want to get a minimum value of all the invoice totals, or get a maximum value of all invoice totals, or maybe even calculate the average price contained within your documents. To do this, we use the built-in PouchDB reduce functions. There are three of them, count, sum, and stats.