commit | 14df56ae9c893dd0c783139bd2d260d2b4dee9ea | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Tue Sep 13 22:07:32 2016 +0200 |
committer | Sapan Bhatia <gwsapan@gmail.com> | Tue Sep 13 22:07:32 2016 +0200 |
tree | 4e39d7caf92f13777d32434dac13a9c1b06a2f8e | |
parent | ffd73a9f44d1d29bc6cf1aaa3b86e2af9d49bfe5 [diff] | |
parent | 4d9368930a15bd019f5e1284a955efeb655afd03 [diff] |
Merge remote-tracking branch 'upstream/master'
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.8 start /home/plee/hack/yang-cord > node lib/api/server.js [yang-express] start of a new journey [openapi] enabling... [openapi] enabled ok [restjson] enabling... [restjson] enabled ok [websocket] enabling... [yang-express] registering a new link [yang-express] registered 'link:cord-core' [yang-express] registering a new link [yang-express] registered 'link:xos-core' [websocket] binding to server [websocket] enabled ok
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...