mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
1.6 KiB
1.6 KiB
Developer Machine Setup (Mac)
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 shellinitand copy the export statements to your ~/.bash_profile
Any issues? Please let us know on our forums at: http://forum.mattermost.org
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
godirectory 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 $GOPATHandmkdir -p src/github.com/mattermostthen 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 platformandmake test. Provided the test runs fine, you now have a complete build environment. - Use
make runto run your code
Any issues? Please let us know on our forums at: http://forum.mattermost.org