![]() ![]() To update the above request_url in the Slack app, visit the Event Subscriptions page and update the Request URL. Ngrok note: if you stop and restart ngrok, assuming you are using the free version which does not provide a static URL, the ngrok URL will change each restart. Also record this value, you will need this in a moment. (15) Select the OAuth & Permissions features page, and note the Bot User Oauth Token. Record this value, we will need this value in a moment. (14) Returning to the Basic Information setting page, navigate down to the App Credentials section and Show the Signing Secret (commonly known as the 'Slack Signing Secret'). At this stage the application has no backend logic so the app will do nothing, we will create this next. This step will make the application available to our user in the Slack client under the Apps section. (13) In the proceeding permissions page, select the Allow button. Ensure the Basic Information settings page is selected, then within this page under the Install your app heading, select the Install to Workspace button. (12) The website will now take us to the settings for the application. ![]() (11) Continue with step 3 of 3: Select Create Update the request_url with the ngrok forwarding address from earlier. The following is an example output:Įnter fullscreen mode Exit fullscreen mode This will be important when we create the backend NodeJS code for the application shortly.įrom the ngrok's output note the forwarding address. Change this to whatever we want, but record the value. ![]() Note we're forwarding to port 5000 in this example. (3) Setup a symbolic link so ngrok can be accessed across our system: (2) Unzip the ngrok zip file, and drag and drop the resulting ngrok file to our user's Mac Application folder There's nothing revolutionary in the following blog post, this is just a documentation exercise so I don't have to keep remembering every step! The following blog post captures my notes on how to do the same on my local Mac using NodeJS, Slack's Bolt JavaScript framework, and ngrok to expose the application to the internet. And there are some handy simple examples on Glitch which save you from having to create your own server to host the backend code. Slack has done a good job of documenting how to create a basic Slack app to get you over the configuration hump. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |