Skip to content
m0wfo edited this page Dec 9, 2012 · 17 revisions

Welcome to the SprintStack wiki!

Getting Started

Getting SprintStack is pretty simple; first you need to clone yourself a copy:

$ git clone git://github.com/sprintstack/sprintstack.git && cd sprintstack

Once that's done, you'll need to compile the source. You need Ant to build. Let's do it:

$ ant

That might take a while the first time. When that's all done, go fire up the REPL:

$ ./bin/sprintstack

At this point you'll probably want to add the sprintstack/bin directory to your $PATH.

To run a node.js application, simply execute it as usual:

sprintstack foo.js

And while you're at it, why not try out a Hello, world server:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');

And watch those cores get to work!

Core Concepts

For the most part, SprintStack behaves just like node.js, but there are a few things that are good to be aware of:

Clone this wiki locally