• How to fetch all products from Shopify in a single query using GraphQL

    I’ve had a few projects now where I’ve had to sync up inventories in Shopify with some external database that was their source of truth for inventory values. So essentially I would need to Download all the products from Shopify for a store Iterate through them all comparing the inventory value reported in Shopify with […]

  • How to prevent table headings duplicating when generating a PDF

    I needed to generate some reports from data we have. So the first step was to create an HTML page from the data, and then generate a PDF from that HTML that we could send. So firstly to generate the PDF from the HTML, I used the code in htmlToPdf.js below. But I was noticing […]

  • How to authenticate with the Shopify API

    I use Node.js. So to programatically connect to Shopify’s Admin API, I use the npm package @shopify/shopify-api. The Admin API supports both GraphQL and REST.  I found the details on how to authenticate using the API was not very obvious though. This is how to do it. First we need to get an Admin API […]

    How to authenticate with the Shopify API
  • How to do a regular expression search and replace in Visual Studio Code

    I upgraded to V6 in React Router. One of the upgrades was to replace all occurrences of with As you can see there is no simple way to do this as a normal text search and replace. But in Visual Studio code you can use regular expressions to match, and then replace the text. Solution […]

    How to do a regular expression search and replace in Visual Studio Code
  • How to build a website for free

    I’ve been building websites for about 20 years now. Depending what you want from a website and your skill level with web development, will point to what web infrastructure you want. For every website you’ll need the site files (e.g. HTML, CSS, JavaScript, images), and a domain name (e.g. https://andrewgolightly.com). If you don’t choose a […]

  • Using the Spotify Web API with Python

    Same friend who inspired me to create the Signification app, also inspired me to learn Python, and in particular how to interact with the Spotify API using Python. I created a walk through tutorial on how I found Python, and how to create some scripts to interact with Spotify using Python. You can view all […]

  • How to get push notifications working with Expo on the App and Play stores

    I’ve been working on a react native app called Deep Connections on and off for a few years, and using it to test various technologies. I looked into getting push notifications working within an Ionic app I had built, but just found myself struggling too much with Android Studio and Xcode configurations. So I decided […]

    How to get push notifications working with Expo on the App and Play stores
  • How To Create Sacred Geometry With JavaScript

    Sacred geometry requires perfectly formed shapes that are perfectly positioned in relation to each other. This is very difficult to do by hand, so I thought I’d give it a go using code. I’m going to use React, together with Konva.js to be able to draw on the HTML5 canvas element. If you’re interested in […]

    How To Create Sacred Geometry With JavaScript