farque65 / stoic-quotes

A Flask app that gives you a Stoic quote, also has a public API.

Home Page:https://stoic-quotes.azurewebsites.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stoic Quotes

Pytest Hits

A simple Flask app that displays random Stoic quotes from stoics: Marcus Aurelius, Seneca and Epictetus.

Using the API

This app also exposes a public API which you can use to fetch random Stoic quotes for use in your own applications.

Endpoints

Get a random Stoic quote

GET https://stoic-quotes.azurewebsites.net/api/random
Example JSON response
{
    "author": "Epictetus",
    "quote": "Wealth consists not in having great possessions, but in having few wants"
}

Get a list of Stoic quotes based on a word

GET https://stoic-quotes.azurewebsites.net/api/search?word=<YOUR-WORD>
Example JSON response
{
    "response": 200,
    "results": [
        {
            "author": "Epictetus",
            "quote": "Wealth consists not in having great possessions, but in having few wants"
        }
    ]
}

Architecture

This project is hosted on Azure, it uses:

  • Azure App Service
  • Azure CosmosDB

Stoic Quotes Architecture

Author

About

A Flask app that gives you a Stoic quote, also has a public API.

https://stoic-quotes.azurewebsites.net


Languages

Language:Python 65.5%Language:HTML 34.5%