Skip to content

allegro/banana-split

Repository files navigation

Google Cloud Platform logo

Google Cloud Functions - Slack Slash Command sample

See:

Deploy and run the sample

See the Cloud Functions Slack tutorial.

Run the tests

  1. Read and follow the prerequisites.

  2. Install dependencies:

     npm install
    
  3. Run the tests:

     npm test
    

Deploy

     gcloud functions deploy bananaSplit \
     --runtime nodejs14 \
     --trigger-http \
     --allow-unauthenticated \
     --set-env-vars SLACK_SECRET=<SLACK_BOT_API_TOKEN>

Local run

Use following command to run application locally on port 3000:

     SLACK_SECRET=<SLACK_BOT_TOKEN> node run-local.js 

You can use sample http request from http folder in order to check if everything works

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •