offline-first
offline-first copied to clipboard
Code examples and snippets of offline-first (and related) tools
Offline First
This repository contains code examples and snippets of offline-first (and related) tools.
PouchDB
The pouchdb directory contains examples of using PouchDB. Note that each example is self-contained. Meaning, databases (and other resources) set up in each example are also torn down in the same example. Examples include:
- Creating a Local PouchDB Database
- Code Snippet
- JSFiddle
- Creating a Remote PouchDB Database
- Code Snippet
- JSFiddle
- Creating a New Document
- Code Snippet
- JSFiddle
- Creating a New Document, Specifying its ID
- Code Snippet
- JSFiddle
- Updating a Document
- Code Snippet
- JSFiddle
- Deleting a Document
- Code Snippet
- JSFiddle
- Querying a Database with
allDocs
- Code Snippet
- JSFiddle
- Replicating a PouchDB Database
- Code Snippet
- JSFiddle
- Bidirectionally Replicating a PouchDB Database
- Code Snippet
- JSFiddle
- Live Replication of a PouchDB Database
- Code Snippet
- JSFiddle
- Listening for Database Changes
- Code Snippet
- JSFiddle
- Filtered Replication of a PouchDB Database
- Code Snippet
- JSFiddle
- Create an Attachment
- Code Snippet
- JSFiddle
Related Boilerplates and Tools
Frontend Web Apps
Backend Web Apps
Mobile Apps
- PouchDB for Ionic Framework
- "Hello world" Cordova app with PouchDB
- "Hello world" Cordova app with PouchDB, using the SQLite Plugin
- Cloudant FoodTracker (uses Cloudant Sync for iOS)
Desktop Apps
- PouchDB for Electron (formerly Atom Shell)
- PouchDB for Chrome packaged apps
- "Hello world" Chrome app with PouchDB
- PouchDB for NW.js (aka Node-Webkit)
Internet of Things (IoT) Apps
License
Licensed under the Apache License, Version 2.0.