https://github.com/davidcornu/boomerang
A layer-7 proxy for the Busbud blog
https://github.com/davidcornu/boomerang
Last synced: about 1 year ago
JSON representation
A layer-7 proxy for the Busbud blog
- Host: GitHub
- URL: https://github.com/davidcornu/boomerang
- Owner: davidcornu
- Created: 2012-09-20T19:53:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T05:12:14.000Z (over 8 years ago)
- Last Synced: 2024-04-15T10:44:21.559Z (about 2 years ago)
- Language: CoffeeScript
- Homepage: https://github.com/davidcornu/boomerang
- Size: 186 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boomerang
A layer-7 proxy for the [Busbud](http://busbud.com) [blog](http://blog.busbud.com) which
- Serves content from `http://blog.busbud.com` from any host under the `/blog` path,
rewriting any absolute and relative links to point to the new location.
- Removes the following elements:
- ``
- `<link rel='stylesheet'>`
- `<script>`
- `<iframe>`
- Inline `style` attributes
is backed by
- [Express](http://expressjs.com/) for convenience
- [jsdom](https://github.com/tmpvar/jsdom) for parsing and filtering
- [Request](https://github.com/mikeal/request) for networking
and is hosted at http://busbud-boomerang.herokuapp.com/blog for demo purposes.
## Usage
Command-line
```
$ npm install -g "git+ssh://git@github.com/davidcornu/boomerang.git#master"
$ PORT=3000 boomerang
```
From node
```
var boomerang = require('boomerang');
var options = { port: 3000 };
boomerang.createServer(options); # returns an instance of Boomerang
```
## Development
Setup
```
$ npm install -g jake
$ npm install
```
Boomerang uses [Jake](https://github.com/mde/jake) to simplify regular tasks.
Note that although Jake is included in `package.json` for version reference,
it is much more convenient to install it globally.
- `$ jake build` builds [CoffeeScript](http://coffeescript.org/) files from the
`/src` directory into the `/lib` directory.
- `$ jake test` runs the [Mocha](http://visionmedia.github.com/mocha/) test suite.