Read Data from Supabase
← Back to Week 3 / ← Course Index
Goal
Read data from Supabase with the Supabase JS client
Steps
- Install the Supabase JS client and initialize it in your server code using env vars.
- Implement GET /items that selects rows from your table and returns JSON.
- Return 500 with a JSON error body on unexpected errors.
- Extra practice if you want
- implement GET /items/:id that returns 404 when not found