A simple implementation of FaaS (Function as a Service) using node with supabase. This project is based on the tutorial from this page
- Clone this repository
- Change the directory to the cloned repository
- Run
npm install
- npx supabase link --project-ref your-project-ref where your-project-ref is the project reference from your supabase project (Project Settings -> API -> Project URL (project-ref).supabase.co)
- npx supabase functions deploy hello-world
curl --request POST 'https://<project_ref>.supabase.co/functions/v1/hello-world' \
--header 'Authorization: Bearer ANON_KEY' \
--header 'Content-Type: application/json' \
--data '{ "name":"Functions" }'
where ANON_KEY is the anonymous key from your supabase project (Project Settings -> API -> Project API Keys)