Difficulty: Introduction
Estimated Time: 15 minutes

In this scenario, you will learn how to write the node.js function using OpenFaaS.

The OpenFaaS function can be written in any programming language including java, go, node, python, ruby, .net etc...

You have learned how to write OpenFaaS function using node.js.

OpenFaaS - Serverless function using node.js on kubernetes

Step 1 of 3

Verify the OpenFaaS environment

The OpenFaaS environment is being prepared, wait for 2 minutes to let it up and you will see the OpenFaaS Gateway URL in the terminal aside.

OpenFaaS Design & Architecture

Below is the design and Architecture of OpenFaaS.

OpenFaaS Architecture

Access the OpenFaaS Gateway

To interact with OpenFaaS through its portal, access the OpenFaaS Gateway on the tab or from this link: https://[[HOST_SUBDOMAIN]]-31112-[[KATACODA_HOST]].environments.katacoda.com/

When asked about credentials enter the username as admin and password as revealed below: echo -e "The OpenFaaS portal will need these credentials when prompted:\nuser: admin\npassword: $PASSWORD"

Once login you should be able to see the dashboard and option to deploy function.

This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]