sveltekit-tailwind-ecommerce
sveltekit-tailwind-ecommerce copied to clipboard
Pocketbase.io as a backend
Wondering how easy it will be to integrate pocketbase as a backend for this frontend. Nice thing you've got going.
Hi, it should not be hard. Basically you need to have an url/endpoint to fetch all products and an url/endpoint to fetch a product by ID. Then you add those to the load functions here and here. You have to refactor those functions to send requests to that mentioned backend of yours. (Right now it fetches dummy data from the .json.js files)