(#3319) - set leveldown to false to fix webpack Webpack does not like that `leveldown` is trying to use `fs`. We can harmlessly set it to `false` in the package.json. For `levelup`, the issue is that it's trying to directly load its own package.json file, which is apparently a big contentious issue in Webpack, and the standard solution is that app devs add their own json loader, which is what Webpack devs themselves advocate (see [here](https://github.com/webpack/webpack/issues/378#issuecomment-50258332)) and [here](http://mattdesl.svbtle.com/browserify-vs-webpack)). We can add a note about this Webpack config fix to our own wiki, or we can just trust that Webpack-using devs will find it themselves after 5 minutes of googling the JSON issue (I found it in about as much time). In any case, the bare minimum we need to do is set `leveldown` to `false`.
PouchDB was written to help web developers build applications that work as well offline as well as they do online, applications save data locally so the user can use all the features of an app even while offline and synchronise the data between clients so they have up to date data wherever they go.
PouchDB is a free open source project, written in Javascript by these wonderful contributors and inspired by Apache CouchDB.
To get started using PouchDB check out our Documentation and the API Documentation.
If you want to get involved then check out the contributing guide
var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 68 }); db.changes().on('change', function() { console.log('Ch-Ch-Changes'); }); db.replicate.to('http://example.com/mydb');