Understanding Gadget To Build Custom App

Hey community, I am new to Gadget but have prior experience in Building Checkout UI extensions and Shopify apps. Currently, I want to explore gadget by building a simple CRUD application where I can upload an image from the backend, and the uploaded image is rendered on the checkout. What plan of action should I follow to move in this direction. Any feedback on this will be highly appreciated
6 Replies
Chocci_Milk
Chocci_Milk2w ago
Hello, Is the end user the one that'll upload the image or is this just a static asset for your app?
Namish kapoor
Namish kapoorOP2w ago
The end user, on which the app is installed can be able to upload the image
Chocci_Milk
Chocci_Milk2w ago
Ok, here are some docs and other links that will help you get started: https://docs.gadget.dev/guides/models/storing-files https://docs.gadget.dev/guides/plugins/shopify/advanced-topics/extensions#post-purchase-extensions https://github.com/gadget-inc/templates/tree/main/archived/shopify/pre-purchase-template You can load in the image file by making a request from the checkout. Note that you'll need to pass a shopId filter to make sure to show the correct image
Namish kapoor
Namish kapoorOP2w ago
@Chocci_Milk Thank you for the response but isn't the uploaded data specific to each shop just as the products and all the other things
No description
Namish kapoor
Namish kapoorOP2w ago
And this is the code that is rendered in the extension
No description
Chocci_Milk
Chocci_Milk2w ago
I’m not sure that I understand what you mean. Requests from the checkout UI extension aren’t authenticated/don’t have tenancy. Therefor, you’d be fetching all images when one is uploaded, unless you filter

Did you find this page helpful?