/spacecountfunction

Counts the amount of people in space using the Open Notify API

Primary LanguageJavaScript

spacecountfunction

This example counts the amount of people in space using the Open Notify API through a Node.js function and OpenFaaS.

You can use it as a template to build your own function.

  1. Deploy OpenFaaS

  2. Grab the CLI

  3. Clone this repo

git clone https://github.com/alexellis/spacecountfunction
  1. Build / deploy / invoke
faas-cli build \
 && faas-deploy

Then:

echo -n | faas-cli invoke webreq