How t-x-t/dukatia works
Main Components Overview
The system consists of three main components that should be prominently featured:
a. Frontend (Nuxt.js Application)
• As a client-side component
• Modules like Accounts, Transactions, Assets, Budgets, and Dashboard
• Vue.js components structure
b. Backend (Rust Application)
• As the main server component
• Modular structure with key services:
• Transaction management
• Account management
• Asset management
• Budget management
• User management
• Chart generation
• Currency handling
c. Database (PostgreSQL)
• As the data persistence layer
• Note about SQL migrations (given the numerous upgrade files)
Component Relationships
• Frontend → Backend: REST API calls (documented in /docs/dev/rest_api/)
• Backend → Database: Data persistence layer
• Authentication flow (access_token module)
Architectural Patterns to Highlight
• The modular architecture (each feature has its own module)
• MVC-like pattern in the backend (db.rs, mod.rs, rest_api.rs structure)
• The chart generation system (separate chart modules for different features)
Detailed Component Breakdown
Frontend Layer:
[Frontend (Nuxt.js)]
• Pages (accounts, assets, budgets, etc.)
• Components (forms, charts, details views)
• API Integration Layer
Backend Layer:
[Backend (Rust)]
• Web Server
• Feature Modules
• Transactions
• Accounts
• Assets
• Budgets
• Users
• Chart Generation
• Authentication
Database Layer:
[PostgreSQL]
• Core Tables
• Migration System
Additional Elements
• Docker container boundaries
• Environment configuration
• API endpoints
• Security layers (PEPPER configuration)
This system design should effectively communicate both the high-level architecture and the detailed component interactions that make Dukatia a comprehensive financial management system.