sveltekit-tailwind-ecommerce icon indicating copy to clipboard operation
sveltekit-tailwind-ecommerce copied to clipboard

Pocketbase.io as a backend

Open ismailadegbenga opened this issue 2 years ago • 1 comments

Wondering how easy it will be to integrate pocketbase as a backend for this frontend. Nice thing you've got going.

ismailadegbenga avatar Jul 12 '22 06:07 ismailadegbenga

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)

martykuentzel avatar Jul 12 '22 20:07 martykuentzel