Badgerati / pode-openfaas

OpenFAAS template for Pode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pode OpenFAAS

faas-cli template pull https://github.com/badgerati/pode-openfaas
faas-cli new --lang powershell-pode <func-name>

# build
faas-cli build -f <func-name>.yml
docker run -p 8080:8080 <func-name>:latest

# up
faas-cli up -f <func-name>.yml

Request:

Invoke-RestMethod -Method GET -Uri http://localhost:8080/function/<func-name>

The function created by the template has the server set up for you. The handler.ps1 created is where you can place your Route/Middleware logic.

About

OpenFAAS template for Pode


Languages

Language:Dockerfile 60.0%Language:PowerShell 40.0%