Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
bemp is a simple URL router proxy for bem server
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
.travis.yml
CONTRIBUTING.md
ChangeLog.md
GNUmakefile
LICENSE
README.md
TODO
index.js
package.json
sample-routes.json

README.md

bemp is a simple URL router proxy for bem server built on top of COA and node-http-proxy.

Features:

  • Use manually started bem server with params --bemhost (default is localhost) and --bemport (default is 8080).
  • Use local project's bem server (e.g. -r cwd).
  • Use bem server from its own dependancies (flag --internal).
  • Use globally install bem server (flag --global).
  • Some very basic default routes table built-in.

Installation

sudo npm install -g bemp

Usage

sudo bemp --root ~/Sites/bem-www/ -c sample-routes.json

sudo is required to launch server on 80 port.

You can specify host, port and project root. All the params are optional.

See bemp --help for details.

Basic default routes

{
    "/i/": "/i/",
    "/favicon.ico": "/desktop.bundles/favicon.ico",
    "/robots.txt": "/desktop.bundles/robots.txt",
    "/merged/": "/desktop.bundles/merged/",
    "/": "/desktop.bundles/index/"
}

Take a look at sample-routes.json for more examples (it's a route table for bem.info actually).

Something went wrong with that request. Please try again.