Course info
Oct 9, 2020
1h 28m

Storing API data client-side and keeping it synchronized can be a challenge, but if done well it can increase performance and improve the user experience. In this course, Caching JavaScript REST API Data with Local Storage, you’ll learn how to use local storage and pouchDB to store and maintain data received from a restful API. First, you’ll explore how local caching works and explore the differences between the different options. Next, you’ll discover how to retrieve data from an API and store it locally. Finally, you’ll learn how to store JSON documents in pouchDB. When you’re finished with this course, you’ll have the skills and knowledge of the HTML local storage API needed to store Rest API data locally in the browser.

Course FAQ
Course FAQ
Who is this course for?

This course is for anyone interested in understanding local storage and PouchDB. Caching JavaScript REST API Data with Local Storage course will provide you with all the skills you need to add local storage functionality into your web apps.

What is JSON Data?

JSON (JavaScript Object Notation) is most widely used data format for data interchange on the web. It is commonly used for transmitting data in web applications (e.g., sending some data from the server to the client so it can be displayed on a web page, or vice versa). It is based on a subset of the JavaScript programming language and it is easy to understand and generate.

Why is JSON Popular?

JSON is the ubiquitous, de facto format for sending data between web servers and browsers and mobile applications. Its simple design and flexibility make it easy to read and understand, and in most cases, easy to manipulate in the programming language of your choice.

What is a REST API?

A REST API is a way of easily accessing web services without having excess processing. Whenever a RESTful API is called, the server will transfer to the client a representation of the state of the requested resource. A REST API is a way for two computer systems to communicate over HTTP in a similar way to web browsers and servers.

What is PouchDB?

PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the browser. PouchDB was created to help web developers build applications that work as well offline as they do online.

What is local storage?

Local storage is a type of web storage that allows JavaScript sites and apps to store and access data right in the browser with no expiration date. This means the data stored in the browser will persist even after the browser window has been closed.

About the author
About the author

James Millar is a freelance software developer based in Malmesbury, England. He has a passion for the cloud and has designed services that handle millions of transactions every day.

More from the author
RPA with UiPath: Getting Started
2h 4m
Jun 18, 2021
More courses by James Millar
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is James Millar, and welcome to my course, Caching JavaScript REST API Data with Local Storage. I'm a software development consultant and author from Bristol. Storing data locally in the browser gives you new ways to improve the user experience, increase performance, and opens up the opportunity to leverage functionality such as offline and multi‑device synchronization. In this course, we're going to explore some of the key features of local storage and PouchDB that you can use to manage user data and cache data that you receive from REST APIs. Some of the major topics that we'll cover include how to store data in local storage and session storage, how to store API data, how to work out when API data needs to be refreshed, and working with PouchDB to store complex objects. By the end of this course, you'll have a solid understanding of both local storage and PouchDB and have all the skills you need to add local storage functionality into your web apps. I hope you'll join me on this journey to learn about caching REST API data in local storage with the Caching JavaScript REST API Data with Local Storage course, at Pluralsight.