HUB
Sign inSign up
gomoney logo

hidessh99/gomoney

By hidessh99

•Updated 8 months ago

Image
0

1.3K

hidessh99/gomoney repository overview

⁠💰 GoMoney - Personal Finance Management System

GoMoney is a robust, multi-tenant personal finance management platform designed to help users track their transactions, manage financial accounts, and achieve savings goals through a highly intuitive and secure interface.

⁠🚀 Vision & Business Design

Problem Statement: Many individuals struggle with financial fragmentation—having money spread across multiple bank accounts, e-wallets, and cash, making it difficult to understand their true net worth and spending habits.

Solution: GoMoney centralizes financial tracking, provides deep insights via categorization, and encourages disciplined saving through goal-oriented modules.

⁠Core Business Pillars
  1. Financial Visibility: Consolidate all accounts (Bank, Cash, Wallets) in one dashboard.
  2. Spending Insights: Automatically categorize income and expenses to identify saving opportunities.
  3. Goal-Oriented Saving: Empower users to set, track, and achieve tangible financial milestones.
  4. Multi-Tenancy & Privacy: Secure data isolation ensuring every user's financial data is private and protected.

⁠🛠️ Tech Stack & Architecture

Built with a focus on high performance, scalability, and clean code.

  1. Backend: Go (Golang) with Echo v5 Framework.
  2. Database: MySQL, managed via GORM (Object-Relational Mapping).
  3. Authentication: JWT (JSON Web Tokens) with secure cookie support.
  4. Architecture: Clean Architecture (Entity -> Repository -> UseCase -> Controller).
  5. Validation: Go-Playground Validator v10.
  6. Logging: Logrus.

⁠🏗️ System Modules

ModuleDescription
AuthSecure login, registration, and role-based access control (Admin & Client).
AccountingCore transaction engine supporting income/expense tracking with temporal filtering (Month/Year).
GoalSavings target management with progress tracking and deadline management.
FinancialManagement of multiple financial sources (Bank Accounts, Cash, E-Wallets).
CategoriesDynamic classification system with parent CategoryTypes (Income/Expense/Investment).
SubscriptionFreemium/Premium tier management with plan-based access controls.

⁠📂 Entity-Relationship Design

The system relies on a relational schema that ensures data integrity and high-performance querying:

  1. Accountings (Transactions): Linked to Auth, Financial, Category, and CategoryType.
  2. Goals: Personal saving targets linked per Auth.
  3. Financials: User-specific money sources.
  4. Categories: Nested classification under global CategoryTypes.
  5. Subscriptions: Links users to their chosen SubscriptionPlan.

⁠🚦 Getting Started

⁠Prerequisites
  1. Go 1.21+
  2. MySQL 8.0+
⁠Installation
  1. Clone the repository
  2. Configuration: Create config.json (refer to config.json.example)
  3. Run the development server:
cd cmd/web
go run main.go
⁠API Testing

A comprehensive REST Client file is provided for testing:

  1. Accounting API⁠

⁠🛡️ Security & Performance

  1. UUID v7: Using sequential UUIDs for primary keys to optimize database indexing and privacy.
  2. Transactional Consistency: Critical financial operations (like accounting) are wrapped in database transactions.
  3. Middleware-Driven: Dedicated middlewares for Authentication, CORS, and Gzip compression.

Built with ❤️ by Hidessh⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:f892a2879…
Size
20.8 MB
Last updated
8 months ago
docker pull hidessh99/gomoney:latest