DOCKER SETUP
- Follow the instructions at http://docs.docker.com/installation/mac/
- Use the Boot2Docker command-line utility
- If you do command-line setup use:
boot2docker init eval “$(boot2docker shellinit)”
- Get your Docker IP address with
boot2docker ip
- Add a line to your /etc/hosts that goes
<Docker IP> dockerhost
- Run
boot2docker shellinit
and copy the export statements to your ~/.bash_profile
Any issues? Please let us know on our forums at: http://bit.ly/1MY1kul
GO SETUP
- Download Go from http://golang.org/dl/
NODE.JS SETUP
- Install homebrew from http://brew.sh
brew install node
COMPASS SETUP
- Make sure you have the latest version of Ruby
gem install compass
MATTERMOST SETUP
- Make a project directory for Mattermost, which we'll call $PROJECT for the rest of these instructions
- Make a
go
directory in your $PROJECT directory - Open or create your ~/.bash_profile and add the following lines:
export GOPATH=$PROJECT/go
export PATH=$PATH:$GOPATH/bin
then refresh your bash profile withsource ~/.bash_profile
- Then use
cd $GOPATH
andmkdir -p src/github.com/mattermost
then cd into this directory and rungit clone github.com/mattermost/platform.git
- If you do not have Mercurial, download it with:
brew install mercurial
- Then do
cd platform
andmake test
. Provided the test runs fine, you now have a complete build environment. - Use
make run
to run your code
Any issues? Please let us know on our forums at: http://bit.ly/1MY1kul