When the API you’re consuming goes offline, just host it yourself!
Disease.sh has been down for several months but it’s an open source API and it’s basically ready to run in Docker containers.
Since the API was created, the docker cli has updated the compose plugin so simply update the scripts in your package.json and voila!
It helps to know a bit about networking but essentially, spin up a VM with your favorite enterprise grade linux distro (i.e. Alma, CoreOS, etc.), clone the repo, update the package.json, install docker, compose the images with the script command, install ngrok to create a free static domain for your tunnel, and boom!
P.S. edit your .env file with the port you want to use for your API and make sure your ngrok is configured to work with the port of your choice.
👨💻
#sde #softwaredevelopment #softwareengineering #devops