serrrver
Nodejs server.
Last updated 4 years ago by kirick .
CC0 1.0 Universal · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install serrrver 
SYNC missed versions from official npm registry.

Serrrver

Serrrver is simply nodejs server.

How to start server

Create new file in your node directory, e.g. server.js.

Import Serrrver and create new Serrrver object:

var Serrrver = require('serrrver').server
var server = new Serrrver()

Configure your HTTP servers...

var servers = [
  {
    type: 'http'
  }
]

...and HTTPS servers with paths to certificate and key for each domain:

servers.push({
  type: 'https',
  domains: {
    'example.com': {
      cert: 'path/to/ssl.crt',
      key: 'path/to/ssl.key'
    }
  }
})

Also you can set ports for each server (default 80 for HTTP, 443 for HTTPS).

Start your servers!

server.start({
  servers: servers,
  ready: function(){
    // all servers are ready, all files cached
  }
})

Current Tags

  • 2.0.0-beta.7                                ...           beta (4 years ago)
  • 2.0.0-dev.3                                ...           dev (4 years ago)
  • 1.3.5                                ...           latest (4 years ago)
  • 1.0.14-5                                ...           wip (5 years ago)

43 Versions

  • 2.0.0-beta.7                                ...           4 years ago
  • 1.3.5                                ...           4 years ago
  • 1.3.5-beta.1                                ...           4 years ago
  • 2.0.0-beta.6                                ...           4 years ago
  • 2.0.0-beta.5                                ...           4 years ago
  • 2.0.0-beta.4                                ...           4 years ago
  • 2.0.0-beta.3                                ...           4 years ago
  • 2.0.0-beta.2                                ...           4 years ago
  • 2.0.0-beta.1                                ...           4 years ago
  • 2.0.0-dev.3                                ...           4 years ago
  • 2.0.0-dev.2                                ...           4 years ago
  • 2.0.0-dev.1                                ...           4 years ago
  • 1.3.4                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.3                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.7                                ...           5 years ago
  • 1.1.6                                ...           5 years ago
  • 1.1.5                                ...           5 years ago
  • 1.1.4                                ...           5 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.17                                ...           5 years ago
  • 1.0.16                                ...           5 years ago
  • 1.0.15                                ...           5 years ago
  • 1.0.14-5                                ...           5 years ago
  • 1.0.14-4                                ...           5 years ago
  • 1.0.14-3                                ...           5 years ago
  • 1.0.14-2                                ...           5 years ago
  • 1.0.1-4.2                                ...           5 years ago
  • 1.0.14                                ...           5 years ago
  • 1.0.13                                ...           5 years ago
  • 1.0.12                                ...           5 years ago
  • 1.0.9                                ...           5 years ago
  • 1.0.8                                ...           5 years ago
  • 1.0.7                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |