hapi-couchdb-store
CouchDB REST & front-end API
Scope
The goal is to create very simplistic server for static apps, that can store, synchronise and share data only by secure IDs.
Exposes CouchDB's database & document API* at /api
,
and a pre-initialised PouchDB Hoodie Store
at /store.js
.
*CouchDB is in admin party, sensitive APIs are disabled
Install
npm install --save hapi-couchdb-store
Usage
// my-server.jsvar Hapi = var hapiStore = // serve static files from ./publicserver server serverserverstart { console}
<!-- index.html --> My App <!-- some pretty app here -->
Local setup & tests
git clone git@github.com:hoodiehq/hapi-couchdb-store.gitcd hapi-couchdb-storenpm installnpm test
To start the local dev server, run
npm start
License
MIT