This tutorial will teach you the basics of developing apps for Stride using Node.js by looking at an introductory hello world app.
Follow instructions on this page to build a simple Stride app.
The app you will build in this tutorial contains a simple bot that responds to direct messages or mentions of its bot name. To work with the Stride API you will need to create a app at developer.atlassian.com.
To create your first Stride app:
- Open the Create an App page.
- Give your new app a name in the App name field.
- If desired, add a short description in the Description field.
- Click Create; you'll be directed to your app's dashboard page.
- Click Enable API for the Stride API.
- Use the Copy button on the Enabled APIs tab to copy the Client Id and the Client Secret for use below as the
{clientId}and{clientSecret}. - In your glitch app put your client ID and client secret in the
.envfile. You can safely store app secrets in.env(nobody can see this but you and people you invite)
The app descriptor for the hello world for stride app is hosted at /descriptor. You have to link it to your app in the app configuration page where you created your app earlier.
To link the app descriptor to your app:
- Navigate to your My Apps page.
- Click to open the app and then click the Install tab.
- Enter your app descriptor URL,
https://{{glitch_project_name}}.glitch.me/descriptor, in the Descriptor URL field. - Click Refresh. When the app descriptor is installed you will see a The descriptor has been updated successfully! message displayed.
Now your app is created and configured, and your app descriptor is linked, and you can add the app to a conversation:
- In your app dashboard, in the Install tab, click Copy for the Installation URL.
- Open Stride.
- Open the conversation in which you'd like to install the app.
- Click
to open the Apps sidebar, and then click the + button to open the Atlassian Marketplace in Stride.
- Click Connect your app in the Connect your own app box, and then select the Installation URL tab.
- Paste in the Installation URL. Your app information should appear in the window.
- Click Agree.
In a few seconds, your newly-installed app should appear in the Apps sidebar, and the app should send a message to the conversation.
Your app is ready to roll, so let's see it in action.
When the bot is installed it will give you a simple menu for possible actions:
@ mention or direct message this bot with one of these commands:
1- Hello World2- Sending Markdown3- Mentioning Users4- Application Cardshelp- Show this help menu
Inspect all the messages in Stride with the Developer Toolkit.
- Take a look at the files in the skills folder. Each one corresponds to a menu option.
- Change things up. Try changing the messages sent by the app!
- Inspect the messages using the Developer Toolkit
- Read through our Learning section, which has more tutorials and explains different concepts including sites and users, conversations, messages, bots, and more.
- Take a look at our fully featured Reference App. The reference app has quite a bit more functionality built in, and is really a showcase of what you can do with the API in Stride.
emoji's provided by twemoji