Peter Lee | df26beb | 2016-07-28 23:42:27 -0700 | [diff] [blame^] | 1 | # |
| 2 | # Author: Peter K. Lee (peter@corenova.com) |
| 3 | # |
| 4 | # All rights reserved. This program and the accompanying materials |
| 5 | # are made available under the terms of the Apache License, Version 2.0 |
| 6 | # which accompanies this distribution, and is available at |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | |
| 10 | require('events').EventEmitter.defaultMaxListeners = 100 |
| 11 | |
| 12 | yang = require('yang-js') |
| 13 | |
| 14 | require('yang-express').run { |
| 15 | |
| 16 | port: 5050 |
| 17 | models: [ |
| 18 | yang.require 'cord-core' |
| 19 | yang.require 'xos-core' |
| 20 | ] |
| 21 | data: require '../../sample-data.json' |
| 22 | |
| 23 | } |