A minimalistic API for saints phrases
- Database Integrity: Ensures unique dates and prevents app startup if database is not populated
- Auto-population: Database automatically populates on each startup
- Daily Phrases: Get the phrase of the day based on current date
- Comprehensive API: Full CRUD operations for saints and phrases
- Testing: Complete test suite for all endpoints
GET /api/phrases/all- Get all phrasesGET /api/phrases/random- Get a random phraseGET /api/phrases/daily- Get today's phraseGET /api/phrases/:id- Get phrase by IDGET /api/phrases/author/:author- Get phrases by authorGET /api/phrases/date/:date- Get phrases by date (MM-DD format)
GET /api/saints/all- Get all saintsGET /api/saints/:id- Get saint by IDGET /api/saints/name/:name- Get saint by nameGET /api/saints/date/:date- Get saints by date (MM-DD format)GET /api/saints/search/:query- Search saints by name or description
npm installnpm run devnpm testThe API uses SQLite with automatic population. The database will be created and populated on first run, and the app will not start if the database is empty.
Want to contribute? Contact me
