Installing Developer Components on Mac OS XΒΆ
Set up your development environment for building, running, and testing Mattermost.
- If you are developing with the Docker container, install and configure Docker CE:
- Follow the Docker installation instructions at https://docs.docker.com/docker-for-mac/.
- Edit your
/etc/hosts
file to include the following line:127.0.0.1 dockerhost
- Download and install Brew, which you’ll use for installing dependencies. Follow the Brew installation instructions at https://brew.sh/
- Install Node.js, Yarn, libpng, and Go:
brew install node yarn libpng go
- Set up your Go workspace:
mkdir ~/go
- Add the following lines to your
~/.bashprofile
file:export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export PATH=$PATH:/usr/local/go/bin ulimit -n 8096
- Reload your bash configuration.
source ~/.bashprofile
- Fork Mattermost on GitHub from https://github.com/mattermost/platform.
- Download the Mattermost code from your forked repository:
- Create the directory for the code.
mkdir -p ~/go/src/github.com/mattermost
- Change to the directory that you created.
cd ~/go/src/github.com/mattermost
- Clone your Mattermost fork. In the following command, replace {username} with your GitHub username.
git clone https://github.com/{username}/platform.git
Now that everything is set up, you are ready to compile and run Mattermost. See Compiling Mattermost.