Skip to content

nolanlawson/pouchdb-nw-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Demo of using PouchDB in NW.js (aka Node-WebKit)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published