GithubHelp home page GithubHelp logo

ashteya / ionic2-tutorial-pouchdb Goto Github PK

View Code? Open in Web Editor NEW
56.0 12.0 26.0 1.02 MB

Tutorial: How To Use PouchDB + SQLite For Local Storage In Ionic 2

Home Page: http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-ionic-2/

TypeScript 41.79% HTML 17.57% CSS 17.30% JavaScript 23.33%
pouchdb ionic ionic2 typescript angular

ionic2-tutorial-pouchdb's Introduction

ionic2-tutorial-pouchdb

This code is part of a tutorial on how to use PouchDB and SQLite for local storage in Ionic 2 apps.

Read the tutorial here: How To Use PouchDB + SQLite For Local Storage In Ionic 2

For more tutorials on Ionic, check out my blog Gone Hybrid.

How to run the app

After cloning the repo, run npm install followed by the ionic serve command.

Make sure you have all the tools installed, see installation guide.

ionic2-tutorial-pouchdb's People

Contributors

ashteya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ionic2-tutorial-pouchdb's Issues

Fresh build fails with 'pouchdb__.plugin is not a function'

ISSUE
Fresh build fails with 'pouchdb__.plugin is not a function' when trying to save

STEPS TO REPRODUCE
git clone
npm install
ionic cordova run android

Result:

  1. Birthdays screen displays.
  2. Click +
  3. Fill in data and press save
    Result:
  • Data is not saved
  • Chrome debug console shows:

main.js:49038 EXCEPTION: Uncaught (in promise): TypeError: WEBPACK_IMPORTED_MODULE_1_pouchdb.plugin is not a function
TypeError: WEBPACK_IMPORTED_MODULE_1_pouchdb.plugin is not a function
at BirthdayService.initDB (file:///android_asset/www/build/main.js:36967:56)
at file:///android_asset/www/build/main.js:53254:35
at t.invoke (file:///android_asset/www/build/polyfills.js:3:9094)
at Object.onInvoke (file:///android_asset/www/build/main.js:34678:37)
at t.invoke (file:///android_asset/www/build/polyfills.js:3:9045)
at e.run (file:///android_asset/www/build/polyfills.js:3:6481)
at file:///android_asset/www/build/polyfills.js:3:4583
at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:9723)
at Object.onInvokeTask (file:///android_asset/www/build/main.js:34669:37)
at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:9659)

Where is the SQLite adaptor?

Is this article misnamed, or am I missing something?

When you set pouchDB it's using the WebSQL adaptor, not SQLite.

Your example...

..is working fine on my iPhone device, but it's not working within my Chrome browser - could you tell me for which reason?

Error PouchDB

Receiving the following error:

Caught exception:
 Error: watch /home/lm17/Documents/coding/ionic2-tutorial-pouchdb/node_modules/rxjs/observable/empty.d.ts ENOSPC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.