Skip to content

Commit

Permalink
Merge pull request mattermost-community#12 from fkr/master
Browse files Browse the repository at this point in the history
update URL for the developer setup and adapt commands to Mattermost 4
  • Loading branch information
hmhealey authored Jul 24, 2017
2 parents f198639 + 5f0c143 commit 83256a6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
Expand Down

0 comments on commit 83256a6

Please sign in to comment.