programming-quotes-api icon indicating copy to clipboard operation
programming-quotes-api copied to clipboard

API going away because Heroku no longer has a free plan

Open quinncomendant opened this issue 3 years ago • 9 comments

Heroku will no longer have free hosting. Does this mean the programming-quotes-api.herokuapp.com API will be going away? Or will you find an alternate home for it?

quinncomendant avatar Sep 21 '22 17:09 quinncomendant

No known alternative for now :(

mudroljub avatar Sep 21 '22 18:09 mudroljub

Alternatives include GCP Cloud Run, Render, Fly, or Railway. :)

quinncomendant avatar Sep 22 '22 21:09 quinncomendant

Replit too!

SwiftyProgrammer690 avatar Sep 22 '22 22:09 SwiftyProgrammer690

Y’all – if you just want to get all quotes or one random quote (and don't mind a 34KB response), you can still use the “alternative API”:

Get all quotes:

curl -s --compressed https://raw.githubusercontent.com/skolakoda/programming-quotes-api/master/Data/quotes.json

Get a random quote:

curl -s --compressed https://raw.githubusercontent.com/skolakoda/programming-quotes-api/master/Data/quotes.json | jq ".[$((RANDOM%501))]"

😜

quinncomendant avatar Feb 22 '23 01:02 quinncomendant

Thanks for the fix!

abcdxo avatar Mar 15 '23 20:03 abcdxo

I've had a look at some of the proposed alternatives, but I don't have that much time to try and compare each one. It would be very useful if someone wants to help deploy the project to one of the free platforms.

mudroljub avatar Aug 08 '23 12:08 mudroljub

you can also use github pages - I use it for my DI team's website and it works well for me - https://ahujaesh.github.io

ahujaesh avatar Jan 09 '24 01:01 ahujaesh

Hi @ahujaesh,

you can also use github pages

We love GitHub pages, but it only hosts static content. This API requires hosting code that runs on the server (unless you're referring to just loading the JSON file as per my hack above, in which case the content is already hosted by github 🙃).

quinncomendant avatar Jan 09 '24 22:01 quinncomendant

Oh my bad - I'm new to GitHub pages and I use it for HTML, which is static

ahujaesh avatar Jan 11 '24 01:01 ahujaesh