Example project for getting started with supabase-edge-functions-kt.
- Prepare your machine for supabase local development
- Install Docker Desktop and Supabase CLI if it is not done yet.
- Start Docker.
- Make sure you closed all running supabase local development stacks in order to release the required ports. Otherwise you'll have to change the ports for required services in the config file.
- Start the supabase local development stack for the project (
supabase start).
hello-world 📁
Simple Hello world function written in kotlin.
- Run the configuration
hello-world requestto serve the function and automatically send requests. - Run the configuration
hello-world serveand make request with your favorite tool such as Postman.
call-js-from-kotlin 📁
Example function demonstrating how to call a js function from kotlin side.
- Run the configuration
call-js-from-kotlin requestto serve the function and automatically send requests. - Run the configuration
call-js-from-kotlin serveand make request with your favorite tool such as Postman.
call-kotlin-from-js 📁
Example function demonstrating how to call a kotlin function from js side.
- Run the configuration
call-kotlin-from-js requestto serve the function and automatically send requests. - Run the configuration
call-kotlin-from-js serveand make request with your favorite tool such as Postman.
call-js-in-another-module 📁
Example function demonstrating how to call a kotlin function that relies on a js function but located in another module.
- Run the configuration
call-js-in-another-module requestto serve the function and automatically send requests. - Run the configuration
call-js-in-another-module serveand make request with your favorite tool such as Postman.
database-interaction 📁
Example function demonstrating how to use supabase-kt to interact with the database.
- Run the configuration
database-interaction requestto serve the function and automatically send requests. - Run the configuration
database-interaction serveand make request with your favorite tool such as Postman.