pruthvi2103 / random-quote-api

Simple API return one of thousands of famous quotes

Home Page:https://randomquote-api.herokuapp.com/api/random-quote

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

random-quote-api

Live Demo: https://randomquote-api.herokuapp.com/api/random-quote

Deployment

To deploy as a new heroku site:

  1. Install heroku for your operating system and login
  2. Clone repo
  3. cd to project cloned repo
  4. Test locally with heroku local web -p 8000 or -p #### if 8000 is not free
  5. heroku create [appname] to create the new heroku site, choose an appname or omit for a random name.
  6. Deploy site by pushing to the heroku remote created in the previous step git push heroku master
  7. Navigate to https://appname.herokuapp.com/api/random-quote once deployment has completed in your command line

Usage: retrieve a quote object

REQUEST

GET /api/random-quote

RESPONSE (200 OK)
{  
  "quote":"Have the courage to face a difficulty lest it kick you harder than you bargain for.",
  "author":"Stanislaus I",
  "category":"courage"
}

About

Simple API return one of thousands of famous quotes

https://randomquote-api.herokuapp.com/api/random-quote

License:MIT License


Languages

Language:JavaScript 100.0%