Replies: 1 comment 2 replies
-
I'd make a theme extension instead that provides a section for the merchant to drop in. This would make the development process more streamlined, the URL would be of merchant's choosing instead of |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone! I'm very new to this whole platform, and first of all wanted to say that this repo has been insanely helpful in the learning process! I'm working on an app that utilizes the database from both the frontend and backend, and have the frontend set up to use a .liquid file on a proxy in order to display data while keeping the original shop's template:
proxyRouter.get("/", (req, res) => { res.set('Content-Type', 'application/liquid') .sendFile('server/routes/app_proxy/listings.liquid', { root: '.' }) });
(in server/routes/index.js)
I was wondering if I have the right idea of just using javascript to make a request to an endpoint on the database? I see in the notes that you say to use TanStack or SWR for client requests, but as far as I'm aware this isn't possible when using a .liquid file. I guess my question is if I have the right idea on going about it? Or is there a way to display a .jsx file while still keeping the shop's original template? If it helps at all, I'm attempting to make an app that allows users to upload a few images and some other basic info from the proxy page, which gets put into the database and allows other users to see (like a buy/sell type thing), with the admin page allowing you to edit/remove listings. Not necessarily looking for a spoonfeed, I'm just wondering if I have the right idea. Any advice is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions