Full-stack web app and API that provides random inspirational quotes to the user
- Over 75,000 quotes
- Over 100 genres
Quotable is a full-stack web app, including a developer API, that provides random motivational quotes to the user. It uses Node, Express, jQuery, and Bootstrap.
GET /api/quotes/random
- returns a random quote. genre
is an optional query parameter that specifies the genre of the quote. Format:
{
"quote": "Quote goes here",
"author": "Author goes here",
"genre": "Genre goes here"
}
GET /api/genres
- returns the list of available quote genres. Format:
{
"genres": [
"example",
"example2"
]
}
GET /api/quotes/count
- returns the amount of genres and quotes. Format:
{
"quotes": 75967,
"genres": 118
}
Before you begin: Make sure you have Node.js and NPM installed!
Clone the repository, open the folder with a terminal, and execute the command npm start
. Navigate to localhost:3000
in your web browser to use the app. Enjoy!
Inspirational quote file from akhiltak/inspirational-quotes. Copyright (c) 2016 Akhil Tak. License
Images from Lorem Picsum