1.1.1 • Published 8 years ago

neg-rexpress v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 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

8 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago