Skip to content

ramblin-rose/canned-pouch-db

Repository files navigation

canned-pouch-db 🥫

A trivial demonstration on how to can (🥫) a pouchdb instance with a local node script and then load that pouchdb in an Ionic 5/Angular app.

See 'can-a-pouchdb.js' in the root directory to see how the local pouchdb instance is created and then serialized to src/assets/db. See src/app/services/data.service.ts to see how to hydrate a new pouchDB with the canned database.

The data service uses the memory adapter so as to avoid having to destroy the database prior to every run.

For context, see StackOVerflow #68105040

Install & Run

$ git clone https://github.com/ramblin-rose/canned-pouch-db.git
$ cd canned-pouch-db
$ npm install  
$ ionic build & ionic serve

License

canned-pouch-db is released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published