Files
archived-starters/examples/slack-webhook
Faraz Patankar e20197af8f Update expressjs-prisma example (#69)
* add slack webhook example

* update expressjs-prisma starter
2021-04-05 14:53:55 -07:00
..
2021-04-05 14:53:55 -07:00

Slack webhook starter

This example starts an ExpressJS server containing a post request to emit a message on Slack.

Deploy on Railway

Features

  • Express
  • TypeScript
  • Slack webhook route

💁‍♀️ How to use

  • Create a Slack app with an incoming webhook.
  • Click the deploy button and add the SLACK_WEBHOOK_URL.
  • Install dependencies yarn
  • Connect to your Railway project railway init
  • Start the development server railway run yarn dev

📝 Notes

The server started simply returns Hello from the webhook! :rocket:. You can consume whatever information you'd like from your custom webhook, parse it and send it to Slack accordingly.

You can read the documentation for formatting your messages here.