gr2m / github-app-slack-demo

A minimal GitHub App that integrates with Slack
MIT License
2 stars 0 forks source link

Deploy to Netlify #8

Open developertom01 opened 3 weeks ago

developertom01 commented 3 weeks ago
gr2m commented 3 weeks ago

Hey thanks for opening the issue! If you would like to give it a go, check out the these docs about how to create a node middleware: https://github.com/octokit/octokit.js?tab=readme-ov-file#webhooks

And these docs about what routes are exposed automatically for us: https://github.com/octokit/octokit.js?tab=readme-ov-file#app-server

We will need to configure/set a webhook secret to make it work.

Other todos:

This might also be useful as a reference. It's old and it uses Probot, but might have some useful insights: https://github.com/probot/example-netlify-functions/

gr2m commented 3 weeks ago

Maybe, as a first step, create a function for a GET /api/health route that simply responds with {"ok": true}? We can use it for monitoring later and use it to play with the overall setup.