# TopEvents-API
## Description
This is a simple API that allows you to read events stored in a Supabase DB by using a simple Edge Function.
## Usage
To use this API, you need to have a Supabase account and a project with a table called events with the following columns:
id(INT8)name(TEXT)image(TEXT)link(TEXT)archived(BOOLEAN)
You also need to have a Supabase API Key with the following permissions:
events:select
To deploy this API, you need to have the following environment variables:
SUPABASE_URL: The URL of your Supabase projectSUPABASE_ANON_KEY: The Supabase API Key
You can test this API by running the following command:
supabase functions serve --no-verify-jwtYou can deploy this API by running the following command:
supabase functions deploy api --no-verify-jwt