Thanks to visit codestin.com
Credit goes to github.com

Skip to content

oriondor/fortune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fortune

This project consists of two parts:

fortune-backend/ — a FastAPI application (Python 3.13+) that:

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).

fortune-frontend/ — a Vue 3 application (Vite-powered) that:

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).

Getting DB ready:

To create epigrams table use following SQL

 CREATE TABLE epigrams (
 id TEXT PRIMARY KEY,
 text TEXT NOT NULL,
 source TEXT
 );

About

FastAPI and VueJs to generate fortune phrases

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors