Skip to content

Development Setup: Guided Walkthrough

John Gardner edited this page Nov 4, 2013 · 24 revisions

This page provides a guided installation for setting up StackStudio and dependencies for development.

Installation on Ubuntu with Vagrant

It's convenient to use a virtual machine to install StackStudio, for example, if the development machine is a Windows box.

Pre-install Steps

  1. Install vagrant (http://www.vagrantup.com/)
  2. Set up the basics:
$ mkdir StackStudio
$ cd StackStudio
$ vagrant init precise32 http://files.vagrantup.com/precise32.box
$ vagrant ssh

Ubuntu Setup

Now, from within the virtual machine, you can install dependencies.

sudo su -
apt-get update
apt-get install git
cd /usr/local/
git clone https://github.com/TranscendComputing/CloudMux.git
apt-get install ruby1.9.1-dev
apt-get install build-essential
apt-get install mongodb
cat > /usr/local/etc/cloudmux.env
cd /usr/local/CloudMux/
echo "gem: --no-rdoc --no-ri" > ~/.gemrc
gem install bundler
bundle install --without development test --deployment
bundle exec rake db:seed

cd /usr/local
git clone https://github.com/TranscendComputing/StackStudio.git

# Add repo to get latest node.js.
apt-get install python-software-properties python g++ make
add-apt-repository ppa:chris-lea/node.js
apt-get update

apt-get install nodejs
cd StackStudio
npm install
npm install -g grunt-cli

cp /usr/local/StackStudio/backend.json.sample /usr/local/StackStudio/backend.json
sed -i "s|@backend_endpoint@|http://${HOSTNAME}:9292|g" /usr/local/StackStudio/backend.json

# Add web server
apt-get install libssl-dev 
gem install puma 

Clone this wiki locally