My first Custom Slack App - Part 3
Tags: node, slack, googlespreadsheet, javascript
Published: 2019-05-20 11:06:13

---
title: My first Custom Slack App - Part 3
published: true
description: Creating your free Custom Polling Slack app using google spreadsheet as database and some server as our host for NodeJS Application.
tags: node #slack #googlespreadsheet #javascript
---
# Blogs in the Series
| Part 	| Description                                                   	|
|------	|---------------------------------------------------------------	|
| 1    	| [Setting the backend](https://dev.to/nabheet/my-first-custom-slack-app-part-1-4o6j)                                           	|
| 2    	| [Setting the API server to talk to Backend as well as frontend](https://dev.to/nabheet/my-first-custom-slack-app-part-2-28p5) 	|
| 3    	| [Setting the Frontend to talk to API server ](https://dev.to/nabheet/my-first-custom-slack-app-part-3-4ahh) 	|
| 4    	| Deploying the app to something permanent	|
| 5    	| Research on deploying to slack app store	|

# What we have done so far? 
In our previous [Blog](https://dev.to/nabheet/my-first-custom-slack-app-part-2-28p5) we have set up our [NodeJS](https://nodejs.org/en/) app which will talk to [google spreadsheet](https://www.google.com/sheets/about/). So lets now create our frontend slack app which will interact our NodeJS application and as well as deploy the local running NodeJS app to SAP cloud foundry trial.
![](https://thepracticaldev.s3.amazonaws.com/i/ros032he6z5az16pkuto.png)

# Deploying the NodeJS application to SAP Cloud foundry trial
Before actually setting app we need to deploy our app so that we can provide the callback url of the deployed application. I being from SAP background so have used the SAP Cloud Platform Cloud foundry trial version for the same, you can use any.
* Go to [SAP](https://cloudplatform.sap.com/index.html) and create a free trial version.
![](https://thepracticaldev.s3.amazonaws.com/i/tddehrjswrx8q1rqrhhs.png)
* Once your account is set up, you need to login, choose Cloud Foundry and go with creation and activation steps 
![](https://thepracticaldev.s3.amazonaws.com/i/u64uokjqjud5yi7uqysg.png)
* You must have seen the deployed NodeJS slack application in previous picture. In order deploy an application you first need to install CF CLI follow this [SAP Developers tutorial](https://developers.sap.com/india/tutorials/cp-cf-download-cli.html) to install the same. Once you have logged in and set up your endpoint and all you need to execute below mentioned command in the NodeJS app folder to deploy the app.
```Node
cf push <app name> -b https://github.com/cloudfoundry/nodejs-buildpack
```
* Once the application is deployed you will the endpoint in the dashboard as well CLI. This endpoint of the application will be used in setting up Slack app.
![](https://thepracticaldev.s3.amazonaws.com/i/y76rq5n36of1qmprlzlt.png)

# Setting up Slack
Now we our endpoint ready, lets set up our slack app.
* Go to [Slack app](https://api.slack.com/apps) and create a new app.
![](https://thepracticaldev.s3.amazonaws.com/i/wchuqnvkqqor8eu38nd3.png)
* Choose Features and functionality what you want to activate. Since our app has events, interactive components, slash commands so we choose them.
![](https://thepracticaldev.s3.amazonaws.com/i/pqv4fuvdvg8nbnmzv6ac.png)
* Events set up, please note we have appended **/slack/events** to the URL.
![](https://thepracticaldev.s3.amazonaws.com/i/bl0n95j9nytt65ycdm0o.png)
* Slash Commands set up, please note we have appended **/slack/events** to the URL.
![](https://thepracticaldev.s3.amazonaws.com/i/fh5g950inavre28pkogl.png)
* Bot Set up
![](https://thepracticaldev.s3.amazonaws.com/i/gyqj4j9hkpi77n6zctp6.png)
* Interactive actions set up
![](https://thepracticaldev.s3.amazonaws.com/i/bgyuua1ezhii26uowiq5.png)
* If you remember in our previous blog we have used signing secret and token you can find them as shown below.
![](https://thepracticaldev.s3.amazonaws.com/i/f6lf05tx7c3gcxx4hdws.png)
![](https://thepracticaldev.s3.amazonaws.com/i/z6y6em5xodmiukjvn3dk.png)

# Live Demo
Here is the live working demo. This is the basic version which can be extended as per the need.
{% youtube hqUKNliSwr8 %}

# What is next?

So now we have our custom app which is deployed to SAP Cloud foundry trial up and running, next step is to find permanent place for it. What better than our OpenFaaS cloud. We will deploy this application to OpenFaaS.