Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 673 Bytes

File metadata and controls

29 lines (20 loc) · 673 Bytes

basic-template

This is the basic template for a Merrymake service.

Explanation

The merrymake.json file defines one hook main/hello, and maps it to the action handleHello.

The index.ts file defines the handler handleHello.

The handler first parses the payload, then replies with a hello-message, including the payload.

How to deploy it

First push the code, either through Git or with the command

$ mm deploy

If you don't have a key yet, make one now:

$ mm key

Now you can trigger using:

$ curl --silent -d "World" -H "Content-Type: text/plain" https://rapids.merrymake.io/[key]/hello
Hello, World!