Simple "Hello World" app with NW.js and PouchDB. All it does it check that we can have a PouchDB backed by:
- IndexedDB (browser default)
- WebSQL (browser alternative)
- LevelDB (using Node)
Just download the source code and run:
npm install
npm start
That's it! You should see:
In order to get this working in LevelDB, you have to recompile leveldown using nw-gyp
. I figured out how to get this to work,
and if you check out the postinstall
script in package.json
, you can learn too. (Because it's a postinstall
script, it will actually do it automatically when you npm install
.)
See pouchdb-nw for more instructions.
Thanks to cozy-desktop for pointing me in the right direction.