A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://github.com/lapwinglabs/roo below:

matthewmueller/roo: Jump-start your front-end server

NOTE: 2.x is a significant departure from 0.x. Roo has been updated to reflect the changing landscape. The new roo is only meant to recieve and response to dynamic data.

Jump-start your front-end server. Bundles and configures the boilerplate of a Koa app.

const roo = Roo()
const users = Roo()

roo.mount('/users', users)

users.get('/', function * () {
  this.body = 'users!'
})

roo.listen(3000)

Initialize Roo.

Roo.{get,post,put,delete,...}(route[, middleware, ...], handle)

Add a route to Roo. Routing is powered by kr, so visit there for API details.

roo.post('/signup', signup)

Pass additional middleware generator's to Roo.

Mount an app inside of Roo at path. path defaults to /

const app = roo()
const dash = roo()
app.mount('/dashboard', dash);

Start the server on port. You may pass the environment variable PORT=8080 in to specify a port. Otherwise it defaults to 3000 if otherwise not specified.

Get koa's request handler. Useful if you'd like to proxy requests.

Roo is short for Kangaroo. I wrote this while visiting Australia for CampJS and I have Kangaroos on my mind.

Kangaroo Icon by Olivier Guin

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4