https://github.com/funktionio/funktion-nodejs-quickstart
A simple example project using nodejs functions
https://github.com/funktionio/funktion-nodejs-quickstart
Last synced: 2 months ago
JSON representation
A simple example project using nodejs functions
- Host: GitHub
- URL: https://github.com/funktionio/funktion-nodejs-quickstart
- Owner: funktionio
- License: apache-2.0
- Created: 2017-06-12T10:26:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T11:39:36.000Z (about 9 years ago)
- Last Synced: 2025-01-25T22:52:53.217Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# funktion-nodejs-example
A simple project using nodejs functions.
## Running
* [download the funktion binary for your platform](https://github.com/funktionio/funktion/releases) and add it to your `$PATH` ensuring that its executable.
* ensure you have access to a kubernetes or openshift cluster so that you can type commands like these (depending on if you use kubernetes or openshift):
```
kubectl get pod
oc get pod
```
* install funktion into your current namespace via:
```
funktion install platform
```
* clone this git repository
```
git clone https://github.com/funktionio/funktion-nodejs-quickstart.git
cd funktion-nodejs-quickstart
```
* now create your function(s) and watch for local changes to your files type:
```
funktion apply -f src
```
* you should be able to view the functions created via
```
funktion get fn
```
* to watch the pods startup for your functions you can try:
```
kubectl get pod -w
```
* to enter watch mode where you can keep editing the source code and the functions update in real time try add `-w`:
```
funktion apply -f src -w
```
* then if you change a source file in the `src` folder you should see the pod for the function restart and load the new source.