This project consists of two parts:
Imports and stores the original fortune epigrams in a PostgreSQL database.
Exposes REST endpoints to fetch random epigrams and add new ones.
Includes a script that automatically detects the local fortune installation path and imports all existing fortunes.
Uses a clean modular architecture: core/ (DB & path logic), services/ (business logic), routers/ (API endpoints), models/ (Pydantic schemas), and scripts/ (Import script).
Displays random fortunes with a minimal, responsive UI.
Allows adding new epigrams through a simple form.
Communicates with the backend via REST API calls (fetch).
To create epigrams table use following SQL
CREATE TABLE epigrams (
id TEXT PRIMARY KEY,
text TEXT NOT NULL,
source TEXT
);