# funktion-nodejs-example **Repository Path**: mirrors_rhuss/funktion-nodejs-example ## Basic Information - **Project Name**: funktion-nodejs-example - **Description**: example event driven microservice using funktion with a NodeJS function - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Example NodeJS Funktion This example shows how easy it is to develop a [funktion](https://github.com/fabric8io/funktion/blob/master/README.md) in [NodeJS](https://nodejs.org/en/).
The source code consists of: * [funktion.yml](funktion.yml) to define the trigger URL (in this case HTTP) * [hello-rest.js function in node](hello-rest.js) to process incoming events You can then run your funktion locally via: ``` mvn ``` You can then invoke it via your web browser at [http://localhost:8080/?name=Funktion](http://localhost:8080/?name=Funktion) ### Trying your funktion on Kubernetes or OpenShift Assuming your current shell is connected to Kubernetes or OpenShift so that you can type a command like ``` kubectl get pods ```` or for OpenShift ``` oc get pods ``` Then the following command will package your funktion and run it on Kubernetes: ``` mvn install fabric8:deploy ```