Installing Developer Components on WindowsΒΆ

  1. Install and setup Docker. If you are using Windows 10 Pro or Enterprise, you can use Docker for Windows.
  1. Install Docker for Windows.
  2. Add the line 127.0.0.1 dockerhost to C:\Windows\System32\drivers\etc\hosts using a text editor with administrator privileges.
  1. For other Windows versions, or if you prefer to use VirtualBox, use Docker Toolbox:
  1. Install Docker Toolbox.
  2. Run the Docker Quickstart Terminal and let it configure the default machine.
  3. Run docker-machine ip default in the terminal to get the IP address for the next step.
  4. Add the line {Docker-IP} dockerhost to C:\Windows\System32\drivers\etc\hosts using a text editor with administrator privileges.
  1. Download and install Node.js from https://nodejs.org/.
  2. Download and install Go 1.8 from https://golang.org/dl/.
  3. Install Yarn. Go to https://yarnpkg.com/en/docs/install#windows-tab and follow the installation instructions.
  4. Fork Mattermost on GitHub.com from https://github.com/mattermost/platform, then:
  1. cd ~/go
  2. mkdir -p src/github.com/mattermost
  3. cd src/github.com/mattermost
  4. git clone https://github.com/{username}/platform.git
  5. cd platform
  6. git config core.eol lf
  7. git config core.autocrlf input
  8. git reset --hard HEAD
  1. Install and setup babun from http://babun.github.io/.
  2. Setup the following environment variables (change the path accordingly):
export PATH="/c/Program Files/go/bin":$PATH
export PATH="/c/Program Files/nodejs":$PATH
export PATH="/c/Program Files/Git/bin":$PATH
export GOROOT="c:\\Program Files\\go"
export GOPATH="c:\\User\\{user-name}\\go"
export PATH="/c/Program Files/Docker Toolbox":$PATH #change the path accordingly if you are using Docker for Windows
eval $(docker-machine env default) #skip this line if you are using Docker for Windows

Now that everything is set up, you are ready to compile and run Mattermost. See Compiling Mattermost.