Skip to content

funktionio/funktion-nodejs-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

funktion-nodejs-example

A simple project using nodejs functions.

Running

  • download the funktion binary for your platform 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.

About

A simple example project using nodejs functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published