Comment on page

webhook

Sometimes we might need to communicate directly over HTTP instead of JSON-RPC. In this example, the helloWorldOverHttp implemented in the HelloWorldCronExample class will be triggered by an HTTP request.

Clone the example

  1. 1.
    Run git clone https://github.com/Genez-io/genezio-examples
  2. 2.
    Navigate to the folder cd ./genezio-examples/javascript/webhook

Run the example locally

Run genezio local in the server/ folder. This will start a local web server. The URL will be printed and it can be used to send requests to the method.

Deploy the example to the genezio infrastructure

Run genezio deploy in the /server folder.
Github files are available here.
Last modified 2mo ago