From the course: JavaScript: Client-Side Data Storage
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Overview of Dexie.js - JavaScript Tutorial
From the course: JavaScript: Client-Side Data Storage
Overview of Dexie.js
- [Instructor] We've briefly explored Indexed Db in this course, so if you felt all the steps to setting it up plus using it were overkill, you'd be right. And there is a simpler way with Dexie.js. Dexie.js is an Indexed Db wrapper to make the syntax using it a lot simpler. You add the small library to your HTML script tags and off you go. Then the syntax to set a db and add items are very simple. In fact, we could literally get started in this video. So let me show you. So first go to dive right in and click on getting started and simply copy the script file here, to include Dexie. So copy that, command C. Then let's go to our project on the outside. So what I'm going to do, again, I'm gonna save all the stuff that we've done here and create a new file. Let's call this Indexeddb.js and we'll copy everything from this file, so command a to copy all and then command C and then go to the new file and then command V, save and then we can close this and then we can delete everything here.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.