commit | 13e63a7b75fc0368bfb4f95ede9e9233b09ba507 | [log] [tgz] |
---|---|---|
author | Peter K. Lee <peter@intercloud.net> | Tue Aug 09 18:11:54 2016 -0700 |
committer | Peter K. Lee <peter@intercloud.net> | Tue Aug 09 18:11:54 2016 -0700 |
tree | 300fbe139c48654ced3deffee0ed8bb3f1a77df7 | |
parent | 28b3c404031e38d4072adfc2e6034dda0641a5ad [diff] | |
parent | c93837c1b4289447aee8295283addb7bc863cbd0 [diff] |
Merge branch 'master' of github.com:corenova/yang-cord
This is a work-in-progress effort to create YANG data models for the CORD project and deliver flexible service compositions.
You may contact Larry Peterson llp@onlab.us and Peter Lee peter@corenova.com to learn more about this initiative and find out how you can help.
$ npm install yang-cord
Following the installation, you can start an instance of the YANG model-driven REST API web server. It utilizes yang-express middleware framework built on Express.js to provide dynamic YANG model-driven API routing capability.
$ npm start > yang-cord@1.0.1 start /home/peter/yang-cord > node lib/server.js mounted 'cord-core' model mounted 'xos-core' model [cord-core] calling GET on /cord-core:subscriber
An option --port
is provided to specify the port to listen on, it can be used with:
npm start -- --port 3000
To run the test suite, first install the dependencies, then run npm test
.
$ npm install $ npm test
Mocha test suite is currently under development...