Skip to content

fodmap-diet/fodmap-diet-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fodmap-diet-function

openfaas function for fodmap diet

Test live deployment

fodmap diet function is live at fodmap-diet.o6s.io

curl https://fodmap-diet.o6s.io/fodmap-diet -d '{"items":["banana","cream"]}'

getting started

deploy

faas deploy -f https://raw.githubusercontent.com/fodmap-diet/fodmap-diet-function/master/stack.yml

test

curl http://192.168.99.100:8080/function/fodmap-diet -d '{"items":["banana","cream"]}'

sample output

{
    "banana": {
        "category": "fruit",
        "fodmap": "low",
        "condition": "unripe",
        "note": "ripe banana has high levels of fructans"
    },
    "cream": {
        "category": "dairy",
        "fodmap": "high"
    }
}

to improve performance allow write to rootfs and disable read_only_fs in stack.yml

    environment:
      read_only_fs: false 

About

openfaas function for fodmap diet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages