1.1.1 • Published 7 years ago

neg-rexpress v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

rexpress

Help to build rest api base on express.

This is library is only intended to be used in newegg corp.

Install

$ npm install neg-rexpress

How to Use

var rexpress = require("neg-rexpress");

var logOption = {
    apiLog: {
      uri: "http://10.16.75.24:3000/framework/v1/log-entry",
      global: "TestGlobal",
      local: "TestLocal",
      category: "Exception"
    }
  };

var routePath = __dirname + "/routes";

var faqOption = {
  uri: "/test-faq",
  body: logOption
}

var corsOption = {
  exposedHeaders: "x-token"
}

var options = {
  logConfig: logOption,
  routePath: routePath,
  port: 8003,
  faqOption: faqOption,
  consoleFormat: "dev",
  errorTitle: "Test App"
};

rexpress.startServer(options, function(server, app){
  
})

License

MIT

1.1.1

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago