Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Instant web server (Express/NodeJS)
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
static
views
README.md
package.json
quick-server.js
test.js

README.md

Quick-Server

Is web server helper for NodeJS/Express/Hogan and can be run directly or require'd into a script.
Its for doing stuff, without all the boilerplate.

Install

$ npm i dpweb/quick-server

OR

$ npm i -g dpweb/quick-server

Require into a script - all params are optional

var app = require('quick-server')({
    port: 4000, 
    ip:'127.0.0.1', 
    ssl:'myhost.com' /* for HTTPS server only */
});

app.all(...); // etc..

Use env instead of options

$ port=81 node test.js

SSL

$ ssl=mydomain.com quick-server

OR

Two steps to run as SSL/HTTPS server:

1)
require('quick-server')({ssl: 'mydomain.com'}, function(options, app){
    ...
}

2)
Put these files in the current directory:

mydomain.com.key
mydomain.com.intermediate.crt (called gd_bundle if gotten from GoDaddy)
mydomain.com.crt
Something went wrong with that request. Please try again.