Skip to content

Instantly share code, notes, and snippets.

@adamnengland
Last active December 14, 2015 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adamnengland/5108596 to your computer and use it in GitHub Desktop.
Save adamnengland/5108596 to your computer and use it in GitHub Desktop.
SI Setup
Install XCode & Command Line Tools (Use the App Store)
Install Git - http://git-scm.com/download/mac
Follow these instructions: https://help.github.com/articles/generating-ssh-keys
# Installing Homebrew
open Terminal
cd ~
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew update
brew edit play
Replace contents with the following:
require 'formula'
class Play < Formula
homepage 'http://www.playframework.org/'
url 'http://downloads.typesafe.com/releases/play-2.0.4.zip'
head 'https://github.com/playframework/Play20.git'
def install
rm Dir['*.bat'] # remove windows' bat files
libexec.install Dir['*']
inreplace libexec+"play" do |s|
s.gsub! "$dir/", "$dir/../libexec/"
s.gsub! "dir=`dirname $PRG`", "dir=`dirname $0` && dir=$dir/`dirname $PRG`"
end
bin.install_symlink libexec+'play'
end
end
#########
brew install play
brew install node
git clone http://github.com/isaacs/npm.git
cd npm
sudo make install
brew install mongodb
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
brew install redis
npm install -g coffee-script
mkdir ~/code
cd ~/code
brew install elasticsearch
brew install rabbitmq
#Install and Run Fan360 - Do this in a new terminal
git clone git@github.com:sporting-innovations/fan360.git
cd fan360/conf
./bootstrap.sh
cd ..
play run
#Create ElasticSearch Index - Do this in a new terminal
curl --header "Authorization: ZGltZW5zaW9uX2FwcGxpY2F0aW9uOnNlY3JldA==" http://localhost:9000/api/fans/index
exit
#Install and Run Dimension - Do this in a new terminal
cd ~/code
git clone git@github.com:sporting-innovations/dimension.git
cd dimension
cake install
cake dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment