How manassebonsomi/smart_borne works
CCC Orientation System is a Flask-backed orientation platform for learners and trainers. Its principal learner workflow creates a profile, starts or resumes a session, presents a questionnaire, saves progress, and produces a recommended learning pathway. Trainer capabilities include question and campaign management, command-driven operations, dashboards, reports, and audit/error history. The graph combines documented product stages with source-index and excerpt evidence; several controller and service internals were not sampled, so uncertain connections are omitted.
Main entry points: command_controller.py Command controller · app.py Flask API · session_manager.py Session lifecycle · database.py SQLAlchemy database
Components 25
Learner journey
- Profile management
controllers/profile_controller.py - Session lifecycle
services/session_manager.py - Questionnaire
services/survey_engine.py - Pathway recommendation
services/recommendation_engine.py - Recommendation API
controllers/recommandation_controller.py
Trainer tools
- Question management
controllers/question_controller.py - Dashboard statistics
controllers/dashboard_controller.py - Report exports
controllers/report_controller.py - Campaign management
controllers/campagne_controller.py
Command processing
- Command controller
controllers/command_controller.py - Command correction
services/command_corrector.py - Lexical analysis
services/lexer.py - LL(1) parsing
services/ll1_parser.py - Command builder
services/command_builder.py - Command dispatcher
services/command_dispatcher.py
Application services
- Flask API
app.py - Audit and errors
services/audit_service.py - Authentication
controllers/auth_controller.py
Domain data
- SQLAlchemy database
config/database.py - Learner and session records
models/utilisateur.py - Question records
models/question.py - Recommendation records
models/recommandation.py - Command records
models/commande.py
Other components
- Learner
- Trainer
Connections 34
- Learner → Profile management: creates profile
- Profile management → Session lifecycle: starts journey
- Session lifecycle → Questionnaire: presents questions
- Questionnaire → Pathway recommendation: analyzes answers
- Pathway recommendation → Recommendation API: provides pathway
- Learner → Session lifecycle: resumes session
- Flask API → Session lifecycle: registers routes
app.py - Flask API → Question management: registers routes
app.py - Flask API → Command controller: registers routes
app.py - Flask API → Recommendation API: registers routes
app.py - Flask API → Dashboard statistics: registers routes
app.py - Flask API → Report exports: registers routes
app.py - Flask API → Campaign management: registers routes
app.py - Flask API → Authentication: registers routes
app.py - Session lifecycle → Learner and session records: reads and updates
services/session_manager.py - Recommendation API → Pathway recommendation: uses service
controllers/recommandation_controller.py - Question management → Question records: manages records
controllers/question_controller.py - Dashboard statistics → Learner and session records: queries statistics
controllers/dashboard_controller.py - Report exports → Learner and session records: queries records
controllers/report_controller.py - Campaign management → Audit and errors: records actions
controllers/campagne_controller.py - Command controller → Command correction: corrects command
controllers/command_controller.py - Command controller → Lexical analysis: tokenizes command
controllers/command_controller.py - Command controller → LL(1) parsing: validates syntax
controllers/command_controller.py - Command controller → Command builder: builds command
controllers/command_controller.py - Command controller → Command dispatcher: dispatches command
controllers/command_controller.py - Command controller → Command records: saves command
controllers/command_controller.py - Command controller → Audit and errors: records execution
controllers/command_controller.py - Trainer → Command controller: submits commands
- Trainer → Dashboard statistics: views statistics
- Trainer → Report exports: exports reports
- SQLAlchemy database → Learner and session records: backs models
models/utilisateur.py - SQLAlchemy database → Question records: backs models
models/question.py - SQLAlchemy database → Recommendation records: backs models
models/recommandation.py - SQLAlchemy database → Command records: backs models
models/commande.py