Skip to content

aravindasiva/demotivational-quotes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😒 Demotivational Quotes API


Demotivational Quotes API

I don't know what I am doing

Demotivational Quotes API

Because motivation is too over rated


Report Bug · Request Feature

A GraphQL API for get random demotivational quotes

Retrieve a random demotivational quote or all demotivational quotes, This is a simple graphQL API. Contributions or feature ideas are welcome. You can see the Live version Playground here:

demotivation-quotes-api.herokuapp.com 🤏

NextJS app using this API

negative-space.netlify.app 🤏
Repo

How to Use

Queries

  • quotes (retrives all the quotes)
  • randomQuote (retrives a random quote from the QuotesData)

Example with data

query {
  quotes {
    id
    quote
    author
  }
}
query {
  randomQuote {
    id
    quote
    author
  }
}

Example Response

{
  "data": {
    "randomQuote": {
      "id": "6",
      "quote": "Those who doubt your ability probably have a valid reason.",
      "author": "unknown"
    }
  }
}

How to Install

For running this project locally, you must fork this project first. Then,

yarn
yarn start # Using nodemon for auto-reloading

The server starts at http://localhost:4000/

About

Aravinda Siva – LinkedInaravindcva@hotmail.com

https://github.com/aravindasiva