A sample function that says hello
-
Setup a running riff install
See riff's Getting Started guide. Skip if you already have riff running.
-
Clone this repo
git clone https://github.com/projectriff-samples/node-hello.git cd node-hello
-
Initialize the function definition
Since there are multiple files in the directory, we need to tell
riff
which file to use.riff create node -a package.json
-
Invoke the function
riff publish -d riff -r
Will result in:
Posting to http://127.0.0.1:31768/requests/node-hello Hello riff from node-hello-7db49dd96f-5pm97