How kikoyummy115-tech/healthlit works
Healthlit is a Flask application combining event and zone management with a health-advice expert system and account authentication. The main user workflow is to submit a health question, have the API save it and retrieve ranked matching knowledge, then receive recommendations; users can also register or log in and browse or manage events. The graph follows the shown app setup, route-to-model calls, and expert matching. The README provides no usable capability details, and UI wiring is not established by the sampled JavaScript, so those connections are omitted.
Main entry points: __init__.py Flask app factory · main.py Event routes · chatbot.py Expert API · auth.py Auth routes
Components 17
Application setup
- App launcher
run.py - Flask app factory
app/__init__.py - App settings
config.py - Flask extensions
extension.py
Accounts
- Auth routes
app/routes/auth.py - User accounts
app/models/user.py
Events
- Event routes
app/routes/main.py - Events and zones
app/models/event.py - Cloudinary media
Health advice
- Expert API
app/routes/chatbot.py - Knowledge matching
app/services/expert_engine.py - Health knowledge
app/models/expert_model.py - Knowledge seeding
seed_knowledge.py - Chat interface script
app/static/js/chatbot.js - Expert interface script
app/static/js/expert.js - AI chat page
app/templates/tools/ai_chat.html
Other components
- Web user
Connections 17
- App launcher → Flask app factory: creates app
run.py - Flask app factory → App settings: loads settings
app/__init__.py - Flask app factory → Flask extensions: initializes
app/__init__.py - Flask app factory → Auth routes: registers routes
app/__init__.py - Flask app factory → Event routes: registers routes
app/__init__.py - Flask app factory → Expert API: imports routes
app/__init__.py - Web user → Auth routes: submits credentials
app/routes/auth.py - Auth routes → User accounts: queries and saves
app/routes/auth.py - Web user → Event routes: requests events
app/routes/main.py - Event routes → Events and zones: reads and writes
app/routes/main.py - Event routes → Cloudinary media: uploads and deletes
app/routes/main.py - Web user → Expert API: asks question
app/routes/chatbot.py - Expert API → Health knowledge: stores question
app/routes/chatbot.py - Expert API → Knowledge matching: requests matches
app/routes/chatbot.py - Knowledge matching → Health knowledge: queries knowledge
app/services/expert_engine.py - Knowledge seeding → Health knowledge: seeds knowledge
seed_knowledge.py - Knowledge seeding → Flask extensions: uses database
seed_knowledge.py