How eugene234466/holycode works
HolyCode is a Flask community platform for daily scripture-based coding devotionals and challenges, with anonymous submissions, voting, learning tools, image generation, and push alerts. The main user flow runs through Flask routes to PostgreSQL and, for concept explanations and images, the relevant services. A separate scheduled flow generates daily content from scripture and Groq, persists it, then notifies subscribers. The graph preserves README-described archive, PWA, and code-card capabilities; those routes/templates are incompletely sampled, so only documented or excerpt-visible relationships are shown.
Main entry points: app.py Flask routes · scheduler.py Daily scheduler · notifications.py Push notifications · app.js Browser client
Components 17
Daily content
- Daily scheduler
services/scheduler.py - Scripture fetch
services/bible.py - Groq generation
services/groq_ai.py
Community experience
- Flask routes
app.py - Submissions and votes
app.py - Devotional archive
app.py - Image generation
services/image_gen.py
Persistence and delivery
- PostgreSQL data
database/db.py - Runtime config
config.py - Push notifications
services/notifications.py
Web client
- Page templates
templates - Browser client
static/js/app.js - Offline worker
sw.js
Other components
- Visitor
- Web push service
- Pollinations image API
- OurManna API
Connections 21
- Visitor → Flask routes: requests pages
README.md - Flask routes → PostgreSQL data: reads and writes
app.py - Flask routes → Page templates: renders pages
README.md - Flask routes → Groq generation: requests explanations
app.py - Flask routes → Image generation: generates images
app.py - Flask routes → Push notifications: notifies winner
app.py - Flask routes → Daily scheduler: starts and invokes
app.py - Daily scheduler → Scripture fetch: fetches verse
services/scheduler.py - Daily scheduler → Groq generation: generates content
services/scheduler.py - Daily scheduler → PostgreSQL data: stores daily content
services/scheduler.py - Daily scheduler → Push notifications: sends alerts
services/scheduler.py - Scripture fetch → OurManna API: fetches verse
services/bible.py - Groq generation → OurManna API: gets challenge verse
services/groq_ai.py - Push notifications → PostgreSQL data: loads subscribers
services/notifications.py - Push notifications → Web push service: sends push
services/notifications.py - Flask routes → Submissions and votes: handles submissions and likes
app.py - Flask routes → Devotional archive: serves past content
README.md - Image generation → Pollinations image API: requests AI image
services/image_gen.py - Browser client → Flask routes: calls app routes
static/js/app.js - Browser client → Offline worker: registers worker
static/js/app.js - Offline worker → Browser client: caches assets
sw.js