Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 99 lines (68 sloc) 2.405 kb

Install Instructions

SocketStream runs on all UNIX based platforms, including OS X and Linux.

Mac OS X installation (tested on Snow Leopard 10.6.7)

# get XCode, required for compiling software

http://itunes.apple.com/gb/app/xcode/id422352214?mt=12

# get Redis

download the latest version from http://redis.io

tar -xvzf redis-2.2.X.tar.gz
cd redis-2.2.X
make
make test # this is optional, but they recommend it
sudo make install

to run in the foreground (and see incoming connections):
  redis-server

to run in the background:
  env redis-server > /tmp/redis.log 2>&1 &

# get Node.js

git clone --depth 1 https://github.com/joyent/node.git
cd node
git checkout origin/v0.4
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local
./configure --prefix=$HOME/local/node
make # this will take a couple of minutes
make install
echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile
source ~/.profile

# get npm

curl http://npmjs.org/install.sh | sh

# get SocketStream

sudo npm install socketstream -g

# create a Socketstream app as a test

socketstream new test
cd test
socketstream start

Ubuntu 10.04 server installation

Here is an example that shows how to install SocketStream and it's dependencies on Ubuntu Server, including building Redis and Node.js from source:

# get prerequisites
sudo apt-get install build-essential automake git-core curl libssl-dev -y

# install and run redis
cd ~
wget http://redis.googlecode.com/files/redis-2.2.4.tar.gz
tar -xvzf redis-2.2.4.tar.gz
cd redis-2.2.4
make
sudo make install
env redis-server > /tmp/redis.log 2>&1 &

# install node.js
cd ~
git clone https://github.com/joyent/node.git
cd node
export JOBS=2
mkdir -p ~/local/node
./configure --prefix=$HOME/local/node
make
make install
export PATH=$HOME/local/node/bin:$PATH

# install npm
curl http://npmjs.org/install.sh | sudo sh

# get SocketStream
sudo npm install socketstream -g

# create a new socketstream project called 'test'
cd ~
socketstream new test

# run test app
cd test
socketstream start
Something went wrong with that request. Please try again.