npm install- Create a
functions/.runtimeconfig.jsonwith this structure (ask Auther for token)
{
"slack": {
"coffeehoused": {
"token": "<SLACK-TOKEN>"
}
}
}- Install ngrok and run
ngrok http 5000 - Change the slackbot command url to your ngrok url +
wfh-slackbot-a39c5/us-central1/coffeeBreak firebase emulators:startin the functions folder (need firebase tools installed globallynpm -i -g firebase-tools)npm run devseperately in the functions folder- Triggering a slack command should then go: -> ngrok -> localhost:5000 (cloud function) -> express app