This repository contains code examples and snippets of offline-first (and related) tools.
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
- Creating a Remote PouchDB Database
- Creating a New Document
- Creating a New Document, Specifying its ID
- Updating a Document
- Deleting a Document
- Querying a Database with
allDocs
- Replicating a PouchDB Database
- Bidirectionally Replicating a PouchDB Database
- Live Replication of a PouchDB Database
- Listening for Database Changes
- Filtered Replication of a PouchDB Database
- Create an Attachment
- 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)
- PouchDB for Electron (formerly Atom Shell)
- PouchDB for Chrome packaged apps
- "Hello world" Chrome app with PouchDB
- PouchDB for NW.js (aka Node-Webkit)
Licensed under the Apache License, Version 2.0.