https://github.com/tangojs/tangojs-connector-local
In-memory connector for TangoJS.
https://github.com/tangojs/tangojs-connector-local
Last synced: about 1 year ago
JSON representation
In-memory connector for TangoJS.
- Host: GitHub
- URL: https://github.com/tangojs/tangojs-connector-local
- Owner: tangojs
- License: mit
- Created: 2015-10-01T19:29:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T09:27:29.000Z (about 8 years ago)
- Last Synced: 2025-04-03T08:39:01.229Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://tangojs.github.io
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tangojs-connector-local


[ 
](https://www.npmjs.com/package/tangojs-connector-local)
In-memory connector for [TangoJS](https://tangojs.github.io).
## Quick-start
Install via npm:
```
npm install tangojs-connector-local
```
Feed the connector with your data model:
```javascript
import { LocalConnector } from 'tangojs-connector-local'
let model = {
// ...
}
let connector = new LocalConnector(model)
```
Configure TangoJS to use this connector:
```javascript
tangojs.setConnector(conector)
```
## Data model
Data model is a structure that resembles TANGO devices hierarchy.
See the [`tangojs-connector-local-testmodel.coffee`](src/tangojs-connector-local-testmodel.coffee) for a self-explanatory example.