Skip to content

inchikutty/pouchdb-hoodie-store-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pouchdb-hoodie-store-server

tiny server with a front-end store API

Scope

Serves static assets as well as exposes a subset of CouchDB's REST API, to create and interact with databases. The goal is to create very simplistic server for static web applications, that can store, synchronise and share data only by secure IDs.

Usage

Start a server

pouchdb-hoodie-store-server
# - starts server at http://localhost:8000
# - serves static assets from current directory at /
# - exposes /store.js for the front-end API
# - exposes [HEAD,GET,PUT,DELETE] /store/:dbname and document REST APIs

The index.html in the current folder will be served at http://localhost:8000. To load the front-end JavaScript API, add <script scr="/store/bundle.js"></script>

The front-end JavaScript API is a pre-configured instance of pouchdb-hoodie-store.

The plan™

This is work in progress:

  1. Create an ExpressJS server for static assets. #1
  2. Add express-pouchdb and expose it at /store #2
  3. Add pouchdb-hoodie-store and expose it at /store/bundle.js` #3
  4. Create a simple todo app using pouchdb-hoodie-store-server #4

License

MIT

About

tiny server with a front-end store API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published