Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Host multiple reviews in one app server
JavaScript
tag: 0.0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
example
public
views
.gitignore
README.md
host.js
package.json

README.md

review-host

Host multiple reviews in one app server.

preview

Usage

First install review-host.

$ npm install -g review-host

Then create a directory for your host to live in.

$ mkdir review && cd review

Now create the reviews you wish to host. Check example/ for examples.

Each site (e.g. sites/bootstrap/index.js) needs to export an express request handler that came from review().

$ mkdir -p sites/bootstrap
$ vim sites/bootstrap/index.js
$ # ...

Finally start the server from your review-directory. It will now start serving all reviews in sites/.

$ review-host
review-host listening on port 8899

API

CLI

Issue review-host --help

host(opts)

Returns an express request handler. opts can be:

  • sites : The directory your sites are in. Defaults to ./sites
  • cache : The directory to write cache files to. Defaults to ./cache

Installation

$ npm install -g review-host # for cli
$ npm install review-host    # for library

License

(MIT)

Copyright (c) 2012 Julian Gruber <julian@juliangruber.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.