Ready-to-use template for bootstraping a bun function for openfaas!
# Create a folder just for your faas functions:
mkdir -p ~/dev/faas
cd ~/dev/faas
# Now download the template
faas-cli template pull https://github.com/patlux/openfaas-bun-template
# -> creates a template/bun folder in the current directory
# Replace "my-fance-bun" with a name of your choice
faas-cli new my-fancy-bun --lang bun
# -> creates my-fancy-bun.yml and my-fancy-bun/
# To upload the function:
faas-cli up -f my-fancy-bun.yml
# At the end your folder should look like the following:
~/dev/faas
├── my-fancy-bun
│ ├── .gitignore
│ ├── handler.ts
│ ├── package.json
│ ├── README.md
│ └── tsconfig.json
├── my-fancy-bun.yml
└── template
└── bun
├── Dockerfile
├── function
├── package.json
└── template.yml
If you don't know openfaas
, please checkout https://www.openfaas.com.
- Setup openfaas on your server
- Install openfaas-cli on your local machine
- Login into your server with faas-cli
- Follow the instructions in "Usage"