Mattermost Logo
Edit on GitHub

  1. Install and configure Docker CE:

  2. Add dockerhost as an alias for for use by various Mattermost build scripts:

    • Edit /etc/hosts file as an administrator (e.g. sudo) and add the following line:    dockerhost
  3. Download and install homebrew:

  4. Install Go:

    brew install go
  5. Update your shell’s initialization script (e.g. .bashrc or .zshrc) and add the following:

    export GOPATH=$HOME/go
    export PATH=$PATH:$GOPATH/bin
    ulimit -n 8096
  6. Re-source your shell’s initialization script to update GOPATH and PATH in your current shell:

    source $HOME/.bashrc
  7. Fork

  8. Clone the Mattermost source code from your fork:

    export GITHUB_USERNAME=my_username
    mkdir -p $(go env GOPATH)/src/
    git clone$GITHUB_USERNAME/mattermost-server.git $(go env GOPATH)/src/
  9. Start the server and test your environment:

    cd $(go env GOPATH)/src/
    make run-server
    curl http://localhost:8065/api/v4/system/ping
    make stop-server

    If successful, the curl step will return a JSON object:


    Note: Browsing directly to http://localhost:8065/ will display a 404 Not Found until the web app is configured. See Web App Developer Setup and Mobile App Developer Setup for additional setup.