![]() We’ll be using the webhook url that we got from Slack for configuring the sdk. this is the entry point for our cloud functions and we’ll be writing our functions here for this example.Īlso install the Slack node sdk in the functions folder. Now open the index.js file inside functions folder. Under Shortcuts you should see Create a post. ![]() First, go to a channel or DM and hit the plus icon. Here’s a quick walkthrough of setting up a to do list in a Slack post. Now select Firebase functions in the menu popped in terminal, once complete you’ll find a folder called functions and other configuration files. In Slack posts, you can format text as a checklist, which allows you to make a simple to-do list. Now create a Firebase project in folder with the following command. If you haven’t updated the firebase-tools before, update it with the following command. Once the webhook is created, note it down and we’ll be using that to configure Firebase’s cloud function. How to set a task due date & reminders (Step 15 & 16) How to edit or delete the task due date. How to create a task list on the Ricotta app Home tab. For creating the webhook follow this link. How to create a Team task in a Slack channel. Few Basic Setup.įirst you need to get a Slack webhook in order to send messages to a channel or a group in your workspace. ![]() With this example, we’ll be sending notifications to a Slack channel where a new todo is created or when a todo is marked as checked/unchecked. Right now we’ve a todo list where we can create and toggle status of a todo. If you landed here directly I’d strongly recommend you to look at our previous article Getting Started with Cloud Firestore in 5 Minutes to get more information and clarity since we’ll be using the same example. ![]() In our use case, we’ll be creating a simple Slack notification system where the todos are created and their statuses are updated. ![]() Now let’s see how we can use Firestore along with cloud functions to perform a lot of background operations as well. In our previous article we saw about how to kick start with Firebase’s new add-on FireStore. Now, we are going to create a simple slack notification system via webhooks. With the release of FireStore we can now use it with cloud functions to do lots of wonders. ![]()
0 Comments
Leave a Reply. |