How francocontigo/dundie-rewards works
Main Components
A. Core System Components:
• CLI Interface (Entry Point)
• Core Business Logic
• Database Layer
• User Management
• Email System
• Logging System
B. Data Storage:
• JSON Database (assets/database.json)
• Employee Data Source (CSV/JSON input)
[User Input Layer]
• ▼
[CLI Layer (dundie/cli.py)]
• ▼
[Core Layer (dundie/core.py)]
• ┬────────────┐
• ▼ ▼ ▼
[Database] [User Utils] [Email System]
Component Details
A. Input/Output Layer:
• CSV/JSON file input
• CLI commands interface
• Logging output
B. Business Logic Layer:
• Core reward management (dundie/core.py)
• User management (dundie/utils/user.py)
• Point transaction handling
C. Data Persistence Layer:
• Database operations (dundie/utils/db.py)
• Data models (dundie/models.py)
Key Interactions to Highlight
• CSV/JSON input → User Management
• CLI Commands → Core Logic
• Core Logic ↔ Database
• Core Logic → Email Notifications
┌─────────────────────────────────────────────┐
• Dundie Rewards │
• ┘
• ▼
┌─────────────────────────────────────────────┐
• Input Sources │
• ┌─────────────┐ ┌─────────────┐ │
• CSV File │ │ CLI Input │ │
• ┘ └─────────────┘ │
• ┘
• ▼
┌─────────────────────────────────────────────┐
• Business Logic │
• ┌─────────────┐ ┌───────────────────┐ │
• Core.py │◄──►│ Models.py │ │
• ┘ └───────────────────┘ │
• ┘
• ▼
┌─────────────────────────────────────────────┐
• Services Layer │
• ┌─────────────┐ ┌───────────────────┐ │
• Database │ │ Email System │ │
• ┘ └───────────────────┘ │
• ┘
Additional Notes
• Version information and date
• Test coverage boundaries
• Configuration flow
Remember to include:
• Component names
• Data flow directions
• File references
• Integration points
• Configuration sources
• Testing boundaries
This will provide a comprehensive view of the Dundie Rewards system while maintaining the flexibility to add future planned features like UI, web interface, and API endpoints.