Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

seneca-db-web

0.2.0 • Public • Published

seneca-db-web

This repo has migrated and is out of date.

For latest releases, see here

--

Runs and exposes seneca db stores in separate process or in docker container.

This is a personal repository. It is not part of the official seneca utilities.

Install:

    npm install seneca-db-web

Currently supports:

  • jsonfile-store

Docker usage:

  • coming soon

Localhost usage:

  • run
node seneca-db-web.js --db=jsonfile-store
  • add code below to your app(before you add any plugins with seneca.use)
seneca
.client({port:44040, pins:['role:entity, cmd:*',  'cmd:ensure_entity',  'cmd:define_sys_entity']})
.ready(function(){
  seneca = this
  
  // do stuff, e.g.
  seneca.use('some-plugin')
  seneca.make$('something').save$()
  seneca.make$('something').list$()
})
  • run your app

Keywords

none

Install

npm i seneca-db-web

DownloadsWeekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • avatar