If you haven’t set up your developer environment, please do so before continuing with this section.
Here’s a general workflow for a Mattermost developer working on the mattermost-webapp repository:
MM-$NUMBER_$DESCRIPTION where $NUMBER is the Jira ticket number you are working on and $DESCRIPTION is a short description of your changes. Example branch names are MM-18150_plugin-panic-log and MM-22037_uppercase-email.make test to run the unit tests.make run from the root directory of the server repository. This will start up the server and a watcher process that will build any changes to the client as you make them. To get changes to the server it must be restarted with make restart-server. Your server will be running at http://localhost:8065.make i18n-extractto generate the new/updated strings.make stop in the server repository, then run make check-style to check your syntax and make test to run the tests.During development you may want to reset the database and generate random data for testing your changes. For this purpose, Mattermost has the following commands in the mattermost CLI:
Install the server with go install ./cmd/mattermost in the server repository.
You can reset your database to the initial state using:
mattermost reset
After that, you can generate random data to populate the Mattermost database using:
mattermost sampledata