Skip to content

RoundUpX/RoundUp-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoundUp Backend

RoundUp is a backend service that automatically rounds up every UPI transaction and transfers the spare change into a dedicated investment account. Built entirely in Go, the backend is designed to be modular, scalable, and secure, providing a robust foundation for a seamless financial savings experience.

Features

  • UPI Integration: Securely interact with UPI.
  • Automatic Transaction Rounding: Calculate and transfer the spare change from each transaction.
  • User Management: Handle registration, authentication, and user profile management.
  • Dashboard Data Aggregation: Aggregate transaction data for visual feedback on savings progress.
  • Modular Architecture: A well-defined separation of concerns across different layers.
  • High Scalability: Designed to handle high transaction volumes efficiently.

Architecture

API Layer

  • HTTP Server & Routing: Utilizes Gin for routing HTTP requests.
  • Middleware: Handles authentication, logging, and error management.
  • Handlers: Direct incoming requests to the appropriate service after performing basic validations.

Service Layer

  • Transaction Service: Manages transaction processing, including the calculation of round-up amounts and transfer of spare change.
  • User Management Service: Oversees user registration, login, and profile updates.
  • Dashboard Service: Aggregates data from various services to display real-time savings metrics.

Data Access Layer

  • Models & Entities: Defines core data structures such as User, Transaction, and SavingsAccount using Go structs.
  • Repository Pattern: Abstracts CRUD operations to ensure a separation between business logic and data persistence.
  • Database Integration: Connects to PostGreSQL databases using Go drivers, with robust transaction management and connection pooling.

External Integrations

  • UPI Gateway Module: A dedicated module to securely interact with UPI for transaction processing.

Security Considerations

  • Authentication & Authorization: Implements secure authentication using JWT.
  • Input Validation: Enforces strict validation and sanitization of incoming data to mitigate common vulnerabilities.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages