-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mattermost-community#12 from fkr/master
update URL for the developer setup and adapt commands to Mattermost 4
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,25 +19,33 @@ This Bot Sample was tested with Mattermost server version 3.10.0. | |
|
||
2 - Create a team for the Bot to run. If you have an existing team, you may skip this step and replace `team_name` with your existing team in subsequent steps. | ||
``` | ||
./bin/platform -create_team -team_name="botsample" -email="[email protected]" -password="password1" -username="samplebot" | ||
./bin/platform team create --name botsample --display_name "Sample Bot playground" --email "[email protected]" | ||
``` | ||
3 - Create the user account the Bot will run as. | ||
``` | ||
./bin/platform -create_user -team_name="botsample" -email="[email protected]" -password="password1" -username="samplebot" | ||
./bin/platform user create --email="[email protected]" --password="password1" --username="samplebot" | ||
``` | ||
4 - Create a second user, `bill`, which we will use to log in and interact with the Bot. | ||
``` | ||
./bin/platform -create_user -team_name="botsample" -email="[email protected]" -password="password1" -username="bill" | ||
./bin/platform user create --email="[email protected]" --password="password1" --username="bill" | ||
``` | ||
5 - (Optional) Give `bill` `system_admin` permissions. | ||
``` | ||
./bin/platform -assign_role -email="[email protected]" -role="system_admin" | ||
./bin/platform roles system_admin bill | ||
``` | ||
6 - Log in to [http://localhost:8065](http://localhost:8065) as `bill` and verify the account was created successfully. Then, navigate to the `botsample` team you created in step 2 to interact with the Bot. | ||
6 - Add users to the team | ||
``` | ||
./bin/platform team add botsample samplebot bill | ||
``` | ||
7 - Verify the e-mail address | ||
``` | ||
./bin/platform user verify samplebot | ||
``` | ||
8 - Log in to [http://localhost:8065](http://localhost:8065) as `bill` and verify the account was created successfully. Then, navigate to the `botsample` team you created in step 2 to interact with the Bot. | ||
|
||
## Setup Bot Development Environment | ||
|
||
1 - Follow the [Developer Machine Setup](http://docs.mattermost.com/developer/developer-setup.html) instructions to setup the bot development environment. | ||
1 - Follow the [Developer Machine Setup](https://docs.mattermost.com/developer/dev-setup.html) instructions to setup the bot development environment. | ||
|
||
2 - Clone the GitHub repository to run the sample. | ||
``` | ||
|