Using localhost in composer was an extremely useful way to develop locally while seeing what interactives look like within guardian pages. Unfortunately composer only accepts HTTPS links now, which is a good thing but makes local dev'ing a bit more difficult.
Now to test from localhost you'll need to serve content over a secure connection which means self-signed certs. Here's a quick and dirty way to do that
1# Create a folder to store the keys
mkdir ~/ssl
2# Generate SSL keys. Enter a password for now, we'll get rid of it next then just skip over all the other questions