Skip to content

alexellis/html-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-function

An OpenFaaS function that returns HTML

Try it out:

  • Pull the templates
# faas template pull https://github.com/openfaas-incubator/node8-express-template
  • Edit the template

The template is set to build on ARMHF/Raspberry Pi so if you're on a PC change that by updating the stack.yml file:

  template: node8-express
  • Edit the Docker Hub account

Edit stack.yml and change alexellis2/ to your own account

  • Build/deploy/invoke
# faas build \
 && faas push \
 && faas deploy

You can now open the function in a web-browser.

  • Customize the example

Edit the handler.js function and build/push/deploy the function again.

About

An OpenFaaS function that returns HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published