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 | |
Peter Lee | df26beb | 2016-07-28 23:42:27 -0700 | [diff] [blame] | 10 | yang = require('yang-js') |
Matteo | 78ff07d | 2016-08-01 09:57:16 -0700 | [diff] [blame] | 11 | argv = require('minimist')(process.argv.slice(2)) |
Peter Lee | df26beb | 2016-07-28 23:42:27 -0700 | [diff] [blame] | 12 | |
| 13 | require('yang-express').run { |
| 14 | |
Matteo | 78ff07d | 2016-08-01 09:57:16 -0700 | [diff] [blame] | 15 | port: argv.port || 5050 |
Peter Lee | df26beb | 2016-07-28 23:42:27 -0700 | [diff] [blame] | 16 | models: [ |
| 17 | yang.require 'cord-core' |
| 18 | yang.require 'xos-core' |
| 19 | ] |
| 20 | data: require '../../sample-data.json' |
| 21 | |
| 22 | } |