A lightweight, database-free FastAPI application that serves a daily inspirational quote.
- Deterministic: Returns the same quote for everyone on the same day.
- Database-free: Quotes are stored in a static file (
data.py). - Lightweight: Built with FastAPI.
- Keep-alive: Includes a script to prevent free-tier hosting from sleeping.
-
Setup Environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Server:
uvicorn main:app --reload
-
Access the API: Open
http://127.0.0.1:8000in your browser.