This repository has copied work from the Mattermost plugin starter template. Please refer to that template for more instructions about using it!
You need a Mattermost instance to test with, either locally or remotely hosted. You can follow these instructions if you want to set up a local instance using Docker.
Choose the option without nginx, as you don't need TLS locally. That means starting with the command:
docker compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -dUpdate the configuration to allow uploading plugins:
docker compose cp mattermost:/mattermost/config/config.json .Set the fields PluginSettings.EnableUploads to true, and ServiceSettings.EnableLocalMode to true.
Then copy the file back to the container:
docker compose cp config.json mattermost:/mattermost/config/config.jsonRestart the container:
docker compose restart mattermostFinally, create an admin user so you can get started.
docker compose exec mattermost mmctl --local user create --email test@local.net --username test --password test1234 --system-adminCheck that your environment is ready to go by running
make allThen deploy the plugin to your Mattermost instance:
export MM_SERVICESETTINGS_SITEURL="http://localhost:8065"
export MM_ADMIN_USERNAME="test"
export MM_ADMIN_PASSWORD="test1234"
make deployOnce you've deployed the plugin to Mattermost, it needs to be configured:
Note that you'll also need to create these channels before the plugin will be able to send messages to them. The plugin will not create new channels.
Now, run the provided script to push test data:
./send_event.shYou should see some posts. From there, you're ready to start making changes!
