Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Created December 10, 2010 18:42
Show Gist options
  • Save oberhamsi/736587 to your computer and use it in GitHub Desktop.
Save oberhamsi/736587 to your computer and use it in GitHub Desktop.
/*
// compressed
Server=require("ringo/httpserver").Server;a=require("stick").Application();a.configure("route");a.get("/",function(){return{status:200,headers:{},body:["hello world"]}});(new Server({app:a})).start();
*/
// less compressed
var Server = require("ringo/httpserver").Server;
var app = require('stick').Application();
app.configure("route");
app.get('/', function() {
return {
status: 200,
headers: {},
body: ['hello world']};
}
);
server = new Server({port: '8080', app: app});
server.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment