Set up your development environment for building, running, and testing the Mattermost web app.
Set up your development environment for the Mattermost server.
On Mac, use Homebrew to install Node.js v10 and libpng:
brew install node@10 libpng
For other platforms, install Node.js v10 from https://www.npmjs.com/get-npm.
Clone the Mattermost source code from your fork next to your mattermost-server directory:
git clone https://github.com/$GITHUB_USERNAME/mattermost-webapp.git
client directory in your server with the
dist directory in your webapp:
cd mattermost-server ln -nfs ../mattermost-webapp/dist client cd ..
Test your environment:
cd mattermost-webapp make test
(Optional) Enable live reload functionality to refresh the webapp as you edit the source code. First, install and enable live reload script injection extension for your web browser (Chrome | Firefox), then run (before running webpack):