Sign inSign up

22skowron/witcher-quotes

By 22skowron

•Updated 6 months ago

Deadly simple web app serving random quotes from The Witcher saga

Image
0

912

22skowron/witcher-quotes repository overview

⁠Witcher Quotes

⁠Description

This is a simple Flask-based web app that serves random quotes from The Witcher saga by Andrzej Sapkowski. The application consists of a single-page website where users can request random quotes along with their authors and source information.

⁠Features

  • Minimal single-page web interface
  • Random quote generation on demand
  • Quote metadata including author, source book, and page number
  • Data loaded from an external JSONL file
  • Lightweight and easy to deploy

⁠Endpoints

GET /

  • Main page displaying a random Witcher quote

GET /api/quote

  • Returns a random quote and its metadata in JSON format

⁠Configuration

The application listens on port 5000 by default.

You can override the port using the PORT environment variable.

⁠Container Usage

If running in a container, expose and map the chosen port accordingly.

Example:

docker run -p 5000:5000 --name witcher-quotes 22skowron/witcher-quotes

Once the application is running, you can open it in your browser at http://127.0.0.1:5000

⁠Note

ℹ️ This application is intended for learning purposes and experimenting with containers and Kubernetes.

Tag summary

Content type

Image

Digest

sha256:a1047c12d…

Size

46.8 MB

Last updated

6 months ago

docker pull 22skowron/witcher-quotes