Host multiple reviews in one app server.
$ 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
$ 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
$ review-host review-host listening on port 8899
express request handler.
opts can be:
sites: The directory your sites are in. Defaults to
cache: The directory to write cache files to. Defaults to
$ npm install -g review-host # for cli $ npm install review-host # for library
Copyright (c) 2012 Julian Gruber <firstname.lastname@example.org>
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.