lib-apiserver
Creates custom configured and extended express server
Last updated 2 years ago by valiton .
SEE LICENSE IN LICENSE.md · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lib-apiserver 
SYNC missed versions from official npm registry.

lib-apiserver

...

Getting Started

$ npm install git+ssh://gitosis@tools-valiton.com:vinsight-lib-apiserver.git --save

require it in your code, and use it:

apiserver = require 'vinsight-lib-apiserver' title = 'test-api-server' config = hmc: serviceUrl: 'https://hms.vinsight.de' app = apiserver title, config

server = http.createServer app server.listen 3355, -> console.log '%s listening at %s', app.get('title'), server.address().port

Examples

see the examples-directory!

Documentation

api-docs: (open doc/index.html in your browser)

TITLE

just an internal app title

CONFIG

config.hmc

the harbourmaster url (no default, mandatory!)

config.cors

use cors (default: yes)

config.log

use express logging (default: no)

config.parseBody

use express.bodyParser() (default: yes)

authorization

use authorization (default: yes)

Current Tags

  • 0.3.10                                ...           latest (2 years ago)

1 Versions

  • 0.3.10                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |