SoulSolomon21 / quotd

πŸ“œβœ¨ A public API serving inspiring and uplifting quotes and aphorisms to elevate the human spirit!

Home Page:https://api.quotd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

πŸ“œβœ¨ A public API serving inspiring and uplifting quotes and aphorisms to elevate the human spirit!

https://api.quotd.io

License:MIT License


Languages

Language:TypeScript 96.5%Language:Dockerfile 2.2%Language:JavaScript 1.3%