"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Shopify Liquid REPL with API & JSON

Shopify Liquid REPL with API & JSON

Published on 2024-10-31
Browse:380

Shopify Liquid REPL with API & JSON

I am very excited ? to share my new website Shopify Liquid REPL.

I recently saw Taylor Page's post about the Shopify REPL (Read-Eval-Print-Loop), which prompted me to review the site. After checking the website's output, I created a new version that integrates JSON data input via the API. You can now use direct JSON data without needing to add an API. For this update, I used HTML, CSS, and JavaScript, along with liquid.browser.min.js. Everything is working well so far. Tom Blanchard, you created an excellent site using Polaris and React, and I used your site as a reference for my updates.

? Here are some key points:

  • ? Simple Data: If you use simple data like variables, you can use them directly.
  • ? Complex Data: If you use data related to products, collections, users, etc., you need to add the JSON code.
  • ? Testing API: I have included a dummy testing users API that you can use.
  • ? Other Testing APIs: You can find other testing APIs at Fake Store API.

? How to Use:

  1. If you have an API or JSON, click the "Add JSON" button, add your data, and then close the popup.
  2. Add Liquid code to the input.liquid field (e.g., a product for loop) and include the product title in the loop.
  3. After that, you will see all the product titles displayed in the output box.

That's it! If anyone has any questions, feel free to DM me ?.
Thanks to Taylor and Tom ? for sharing the Shopify REPL post, your posts inspired me to create this website.

Shopify Liquid REPL ? : http://liquid-repl.mycodemagic.com

Release Statement This article is reproduced at: https://dev.to/prashant-ardeshana/shopify-liquid-repl-with-api-json-2g49?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3