Skip to content

Instantly share code, notes, and snippets.

@cognominal
Created June 7, 2012 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cognominal/2887964 to your computer and use it in GitHub Desktop.
Save cognominal/2887964 to your computer and use it in GitHub Desktop.
Installling a Smalled-Federated-Wiki node express server on a raw ubuntu host
# Installling a Smalled-Federated-Wiki node express server on a raw ubuntu host
#
# nodejs is a js server side environment based on the chrome browser v8 engine
sudo apt-get install nodejs
# npm is the de facto package manager for node
sudo apt-get install npm
# necessary for the upcoming 'git clone'
sudo apt-get install git
# we store our gits depot in ~/git
mkdir ~/git
cd ~/git
# clone SFW which contains three possible servers:
# a ruby/sinatra, a nodejs/express and an arduino based one
git clone https://github.com/WardCunningham/Smallest-Federated-Wiki.git
# we will use express node web server
cd Smallest-Federated-Wiki/server/express
# transitively install all the dependencies specified in package.json
npm install .
# we can now run sfw that will be accessible thru the port 3000
node bin/server.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment