Mattermost Logo
Edit on GitHub

Developer Setup

Set up your development environment for building, running, and testing the Mattermost web app.

  1. Set up your development environment for the Mattermost server.

  2. Install dependencies

  3. Fork https://github.com/mattermost/mattermost-webapp

  4. Clone the Mattermost source code from your fork next to your mattermost-server directory:

    export GITHUB_USERNAME=my_username
    mkdir -p $(go env GOPATH)/src/github.com/mattermost
    git clone https://github.com/$GITHUB_USERNAME/mattermost-webapp.git $(go env GOPATH)/src/github.com/mattermost/mattermost-webapp
  5. Link the client directory in your server with the dist directory in your webapp:

    ln -nfs $(go env GOPATH)/src/github.com/mattermost/mattermost-webapp/dist $(go env GOPATH)/src/github.com/mattermost/mattermost-server/client
  6. Test your environment:

    cd $(go env GOPATH)/src/github.com/mattermost/mattermost-webapp
    make test