How deepukishore/dms-portal works
Smart DMS is a Flask document-control portal. Users sign in, upload controlled documents, and route them through first- and final-stage approval; approved documents become browsable in the library, with revision, tracking, reporting, and audit capabilities around that lifecycle. The graph groups HTTP features, document-domain services, identity and communications, and persistence/reference data. Relationships reflect README statements and SOURCE INDEX references; unsampled routes and service behavior are represented only at subsystem level.
Main entry points: document_service.py Document records · document_library_service.py Library assembly · app.py Flask application · upload_routes.py Document upload
Components 28
Portal features
- Flask application
app.py - Document upload
routes/upload_routes.py - Approval queue
routes/approval_routes.py - Library browsing
routes/document_library_routes.py - Dashboard and exports
routes/dashboard_routes.py - Approval tracking
routes/tracking_routes.py - Reports and audit views
routes/graphics_report_routes.py - Specialized record browsers
routes/customer_records_routes.py - Accounts and profiles
routes/auth_routes.py - Notifications
routes/notification_routes.py - Archive
routes/archive_routes.py
Document workflow
- Document records
services/document_service.py - Category records
services/category_document_service.py - Library assembly
services/document_library_service.py - Document previews
services/document_preview_service.py - Document signing
services/document_signing_service.py - Revision history
services/revision_history_service.py
Identity and messaging
- Access control
services/auth_service.py - User store
services/user_store_service.py - Email delivery
services/mail_service.py - Quarterly reminders
services/quarterly_reminder_service.py - System audit log
services/system_log_service.py
Persistence and reference data
- Application database
database.py - Library definitions
data/document_library_data.py - Plant and department data
data/reference_data.py - Customer data
data/customers.py
Other components
- Portal user
- SMTP service
Connections 36
- Portal user → Flask application: uses
README.md - Flask application → Document upload: registers routes
app.py - Flask application → Approval queue: registers routes
app.py - Flask application → Library browsing: registers routes
app.py - Document upload → Document records: saves documents
routes/upload_routes.py - Document upload → Category records: categorizes uploads
routes/upload_routes.py - Document upload → Email delivery: sends approval email
routes/upload_routes.py - Approval queue → Document records: loads documents
routes/approval_routes.py - Approval queue → Email delivery: sends review request
routes/approval_routes.py - Approval queue → User store: loads recipients
routes/approval_routes.py - Library browsing → Library assembly: assembles library
routes/document_library_routes.py - Library browsing → Document records: loads documents
routes/document_library_routes.py - Library assembly → Category records: queries categories
services/document_library_service.py - Library assembly → Library definitions: uses definitions
services/document_library_service.py - Dashboard and exports → Document records: loads documents
routes/dashboard_routes.py - Dashboard and exports → Library assembly: queries library
routes/dashboard_routes.py - Dashboard and exports → Document previews: requests previews
routes/dashboard_routes.py - Approval tracking → Document records: tracks approvals
- Reports and audit views → Document records: reports documents
routes/graphics_report_routes.py - Reports and audit views → Library assembly: reports library
routes/graphics_report_routes.py - Specialized record browsers → Document records: browses records
- Accounts and profiles → Access control: authenticates users
- Access control → User store: looks up users
services/auth_service.py - Notifications → Email delivery: sends notifications
routes/notification_routes.py - Notifications → Quarterly reminders: triggers reminders
routes/notification_routes.py - Archive → Document records: manages archived records
- Document records → Application database: reads and writes
services/document_service.py - Category records → Application database: queries categories
services/category_document_service.py - User store → Application database: reads and writes
services/user_store_service.py - System audit log → Application database: writes audit entries
services/system_log_service.py - Library assembly → Customer data: normalizes customer names
services/document_library_service.py - Library assembly → Plant and department data: normalizes plant data
services/document_library_service.py - Email delivery → SMTP service: delivers email
README.md - Portal user → Approval tracking: views progress
README.md - Portal user → Dashboard and exports: browses and exports
README.md - Portal user → Reports and audit views: reviews reports
README.md