- Create a repository on GIthub,
Webhook-API-example
git clone repo-url
yarn init
to initialize the packages- add dependancy packages
yarn add express body-parser mongoose crypto
- git
.gitignore
and addnode_modules
in ignore list git commit -am "initial repo setup
git push
- Init
server.js
- setup an express server (Hands on)
- Mongoose model
- MongoDb connection
- Create CRUD api for WebHook
- Get login into server via SSH
- username: root
- password:
api@webhook
ssh root@139.59.5.96
- git clone repo and start server
- Configure Github webhook
- webhook url:
http://139.59.5.96:3000/api/webhook
- Open
webhook.site
- Create issue or do other activity to trigger webhook
- Review webhook payload
- secure payload