How to run Storybook with Https on localhost

This is just a quick note for myself on how to do this since the Storybook docs don’t cover this topic.

The steps are:

  1. Generate yourself a self-signed certificate
  2. Run Storybook with the correct command line arguments to use the certificate

Generate a self-signed certificate

There are many ways to do this. The one that seems most universal to me though is to create the certificate using the following openssl command:

openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt

That should generate two files localhost.key and localhost.crt

Run Storybook with the correct command line arguments

npx start-storybook -p 6006 --https --ssl-cert ./localhost.crt --ssl-key ./localhost.key

Read More

ThingWorx local development environment with Docker - Part 1 Reading time ~3 minutes

[ThingWorx](https://www.ptc.com/en/products/thingworx) is a platform for developing "Industrial IoT solutions". They've......

Estimate, target, plan and commit Reading time ~1 minute

I've started into "[Software Estimation: Demystifying the Black Art](https://www.amazon.com/Software-Estimation-Demystifying-Developer-Practices/dp/0735605351)" by......

How to run multiple versions of React side-by-side using Single Spa Reading time ~2 minutes

This seems like it should be easy right? [Single-spa](https://single-spa.js.org/) is......