How mwpro/tiny-money works
Main Components
• Frontend:
• Located under the “frontend” directory.
• Built with Vue.js (components, router, store modules, plugins such as Vuetify).
• Handles the presentation layer with views for Budget management, Buffer transactions, Categories, Reports, Tags, Transactions, and Vendors.
• Backend:
• Found in the “backend” directory, particularly in the MW.TinyMoney.Api project.
• Implements REST APIs via controllers (e.g., BudgetController, Buffer, CategoriesController, TransactionsController, etc.) following a domain-driven design.
• Contains infrastructure components like a MySqlConnectionFactory which implies the use of MySQL.
• Database:
• Schema and setup scripts such as categoryTree.sql, dbschema.sql, reports.sql, and setup.sql suggest a relational database backend.
• CI/CD and Deployment:
• Azure Pipelines YAML files (azure-pipelines-backend.yml and azure-pipelines.front.yml) imply automated builds and tests.
• Docker Compose file indicates container orchestration capabilities.
Relationships and Interactions
• The backend processes requests (through its various controllers arranged by domain) and accesses the database.
• Deployment pipelines using Azure Pipelines and Docker Compose handle the continuous integration and deployment.
• Optionally, incorporate any external services if applicable (e.g., external authentication or third-party services, if used, although none are explicitly detected in the file structure).
Architectural Patterns and Design Principles
• Full-Stack Separation: Clearly separate the presentation (frontend) from the business logic and data-access (backend).
• Domain-Driven Design: In the backend, each domain (Budget, Buffer, Categories, etc.) is logically segmented, suggesting modularity.
• RESTful Service Pattern: The controllers and API models indicate that the backend follows REST principles.
• Dependency Injection / Infrastructure Layer: The presence of components like MySqlConnectionFactory hints at abstraction of resource creation.
• CI/CD and Containerization: The existence of pipeline definitions and docker-compose supports automation and containerized deployment.
Relevant Technologies and Frameworks
• Frontend:
• Vue.js, Vue Router, Vuex (store)
• Vuetify (UI plugins)
• Standard tooling (babel, ESLint, PostCSS)
• Backend:
• C#, ASP.NET Core Web API
• MySQL for persistence (via MySqlConnectionFactory)
• Organized into domain-specific controllers and API models
• Other:
• Azure Pipelines for CI/CD
• Docker Compose for environment management