-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Note that this is super detailed so I can have Claude Code do it
Description
Let's add a utility class / file for fetching (including paging), editing, and deleting PHLask resource data from a Supabase database.
A different project ([email protected]:phlask/phlask-map.git) already has code which retrieves this information and understands the schema. Feel free to temporarily clone that project and take a look at the following files to see what this looks like:
- https://github.com/phlask/phlask-map/blob/develop/src/types/ResourceEntry.js
- https://github.com/phlask/phlask-map/blob/develop/src/db.js (you'll see this already has the keys and DB names as well)
The utility functions should be async functions, and provide great documentation so that others in the project can properly use these (i.e. some examples). The final output, since this site cannot display these yet, should be to simply print the list of resources to the console when the page loads up.