digital ocean:
- download doctl CLI from github (wget https://github.com/digitalocean/doctl/releases/download/v1.92.0/doctl-1.92.0-linux-amd64.tar.gz)
- unpack
tar xf ./doctl-*.tar.gz
- move CLI to /usr/local/bin
- create an auth token in digital ocean web interface and authenticate with doctl
- connect with auth context
- create a new namespace for a serverless function and connect to it
- initialise a serverless function with
doctl serverless init --language js example-project
serverless
- .env .gitignore project.yml must be on top level
- package.json must be in the function folder
- main function needs to be exported and probably async
- environment variables are accessible by registering them in project.yml