Skip to content

Instantly share code, notes, and snippets.

@aheuermann
Forked from adamnengland/gist:5108596
Last active December 18, 2015 01:09
Show Gist options
  • Save aheuermann/5701535 to your computer and use it in GitHub Desktop.
Save aheuermann/5701535 to your computer and use it in GitHub Desktop.
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
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
brew install redis
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
npm install -g coffee-script
mkdir ~/code
cd ~/code
brew install elasticsearch
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
brew install rabbitmq
ln -sfv /usr/local/opt/rabbitmq/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist
#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