/quotd

๐Ÿ“œโœจ A public API serving inspiring and uplifting quotes and aphorisms to elevate the human spirit!

Primary LanguageTypeScriptMIT LicenseMIT

The Quotd API ๐Ÿ“œโœจ

Build Status Test Coverage License: MIT GitHub stars GitHub forks

Welcome to Quotd, a beautifully crafted public API serving inspiring and uplifting quotes and aphorisms to elevate the human spirit! ๐Ÿš€

  • Get random quotes
  • Access quotes by ID
  • Explore all quotes
  • Discover categories
  • Browse authors
  • View all quotes from a specific author

Get a random quote with a simple `curl` command:

curl https://api.quotd.io/quotes/random

Or retrieve a specific quote:

curl https://api.quotd.io/quotes/1

JavaScript

fetch('https://api.quotd.io/quotes/random')
  .then((response) => response.json())
  .then((data) => console.log(data));

Python

import requests

response = requests.get('https://api.quotd.io/quotes/random')
data = response.json()
print(data)

Ruby

require 'httparty'

response = HTTParty.get('https://api.quotd.io/quotes/random')
data = response.parsed_response
puts data

For more detailed information on the API endpoints and capabilities, check out the official documentation.

npm install
# Copy sample .env file. You may need to edit the values.
cp .env.dist .env
# Start the supporting services in background
npm run db:up

# Setup the database
npx prisma db push

# Seed the database (optional)
npx prisma db seed
# development
npm run start

# watch mode
npm run start:dev

# production mode
npm run start:prod
# unit tests
npm run test

# e2e tests
npm run test:e2e

# test coverage
npm run test:cov

Quotd is MIT licensed.