Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.08 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.08 KB

PouchDB NW.js "Hello world" app

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)

Usage

Just download the source code and run:

npm install
npm start

That's it! You should see:

Hello world screenshot

nw-gyp tricks

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.