How to create a webhook using a node app and save data in a DB?

i am creating an app and need to setup a couple of webhooks on the shops who will install the app

anyone has an example of creating the webhook and saving the data received in a DB?

thank you