Skip to content

lbaf23/openfaas-gin-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFaaS Gin Demo

  • dockerfile openfaas template
  • gin

prod

use faas secrets

faas-cli tempplate pull
vim openfaas-postgresql-password.txt

edit postgresql password

faas-cli secret create openfaas-postgresql-password --from-file openfaas-postgresql-password.txt
faas-cli up -f demo.yml

now test api in

http://localhost:31112/function/demo/record/1/

dev

cd demo/conf
cp app.ini app.dev.ini
vim app.dev.ini

edit config

cd ..
export run_mode=debug
go run main.go

now test api in

http://localhost:8000/record/1/

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published