nolanlawson / pouchdb-nw-hello-world

Demo of using PouchDB in NW.js (aka Node-WebKit)
12 stars 2 forks source link

+pouchdb-server ? #2

Open peritus opened 9 years ago

peritus commented 9 years ago

I'm wondering how whether it would be easily possible to also have pouchdb-server listen for incoming connections when inside nw.js (so that the browser accesses the same data as the remote clients via pouchdb-server) ..

How would one do that ?

nolanlawson commented 9 years ago

I suppose the easiest way would be to run express-pouchdb or even pouchdb-server from the "Nodey" part of a NW.js app, and then communicate with it over HTTP.

Not really sure what you mean by "listen for incoming connections," though, so maybe I misunderstand your question?