Peter Lee | e8d9867 | 2016-07-28 04:25:58 -0700 | [diff] [blame] | 1 | require('events').EventEmitter.defaultMaxListeners = 100 |
Peter K. Lee | f4d38d3 | 2016-07-23 02:47:38 -0700 | [diff] [blame] | 2 | yang = require('yang-js').register() |
3 | |||||
4 | require('yang-express').run { | ||||
Peter Lee | e8d9867 | 2016-07-28 04:25:58 -0700 | [diff] [blame] | 5 | |
Peter K. Lee | f4d38d3 | 2016-07-23 02:47:38 -0700 | [diff] [blame] | 6 | port: 5050 |
7 | models: [ | ||||
8 | yang.require 'cord-core' | ||||
Peter K. Lee | 4302f47 | 2016-07-28 03:51:39 -0700 | [diff] [blame] | 9 | yang.require 'xos-core' |
Peter K. Lee | f4d38d3 | 2016-07-23 02:47:38 -0700 | [diff] [blame] | 10 | ] |
11 | data: require '../sample-data.json' | ||||
Peter Lee | e8d9867 | 2016-07-28 04:25:58 -0700 | [diff] [blame] | 12 | |
Peter K. Lee | f4d38d3 | 2016-07-23 02:47:38 -0700 | [diff] [blame] | 13 | } |