To run a simple static HTTP server, use http-server.
How to embed a React app in a Squarespace site
Squarespace is an excellent site to build a good looking website on. Even for an experienced developer who can build things from scratch, Squarespace does a lot of the basics well...
- Inserting text, images, videos, layouts easily with their page editing UIs.
- It's nice to not have to deal with the security and uptime of a website.
- And it's easy to hand off the site to a client for them to easily maintain.
Like with every site builder, they have their limitations. But what if we could embed any custom logic or app within a nice development experience? Like a React app maybe?
How to embed a YouTube video in a docusaurus blog article
Embedding a YouTube video in a Docusaurus blog article is actually very easy to do. I just couldn't find any docs on it. This is how to do it.
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 the inventory value reported in their external database.
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.
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.
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
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.
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.
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.