Skip to content
zuk edited this page Jul 21, 2011 · 2 revisions

First, grab the skeleton sail.js app:

git clone git://github.com/educoder/sail.js.skeleton.git

Then to download the submodules (sail.js):

cd sail.js.skeleton
git submodule init
git submodule update

In the sail.js.skeleton directory, run: (see the Jabberdy-Walkthrough for an explanation)

npm install http-proxy
npm install node-static

Now you should be able to run the server by cding into the app's directory and running:

node server.js

Your app should now be running at http://localhost:8000.

If everything works, you'll be asked for a username and password -- use your XMPP server credentials (keep in mind that if your account was created via Rollcall, you'll need to enter the encrypted version of your password).

Now have a look at the following files:

js/myapp.js
index.html
css/myapp.css

These are the files you'll want to rename and customize for your app. You'll find some helpful comments inside.

For more detailed information see the Jabberdy Walkthrough.

Clone this wiki locally