Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions data-entities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ to do this, as it exposes the underlying database API.
Setup:
$ npm install

Create folders bar-data, foo-data, zed-data.

Note: seneca-level-store compiles the level modules, as they are
native. If this does not work on your platform (e.g. Windows), just
comment out the level-store code.
Expand Down
2 changes: 2 additions & 0 deletions data-entities/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ var util = require('util')

var seneca = require('seneca')()

seneca.use('basic')
seneca.use('entity')
// Use two separate instances of jsonfile-store, each looking after a
// different set of data entities
seneca.use( 'jsonfile-store$foo', { folder:'foo-data', map:{'-/foo/-':'*'}})
Expand Down
6 changes: 4 additions & 2 deletions data-entities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"license": "MIT",
"dependencies": {
"seneca": "plugin",
"seneca-level-store": "~0.2.1",
"seneca-jsonfile-store": "~0.2.2"
"seneca-basic": "^0.5.0",
"seneca-entity": "^1.3.0",
"seneca-jsonfile-store": "^0.2.2",
"seneca-level-store": "^0.2.3"
}
}