blob: c31544528afafc746f0eb7d62340a7cbc18c4df0 [file] [log] [blame]
Peter Leedf26beb2016-07-28 23:42:27 -07001#
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 Leedf26beb2016-07-28 23:42:27 -070010yang = require('yang-js')
Matteo78ff07d2016-08-01 09:57:16 -070011argv = require('minimist')(process.argv.slice(2))
Peter Leedf26beb2016-07-28 23:42:27 -070012
13require('yang-express').run {
14
Matteo78ff07d2016-08-01 09:57:16 -070015 port: argv.port || 5050
Peter Leedf26beb2016-07-28 23:42:27 -070016 models: [
17 yang.require 'cord-core'
18 yang.require 'xos-core'
19 ]
20 data: require '../../sample-data.json'
21
22}