Back to Portfolio

TruqBox - Receipt Management SaaS

AI-powered expense tracking solution for trucking companies

End user: Trucking Company
Duration: ~1 months (MVP)
Team: Solo Developer

The Solution

TruqBox is a cloud-based SaaS platform that automates receipt management using AI/OCR technology. Drivers snap photos of receipts, and the system automatically extracts, categorizes, and processes expense data in real-time.

Key Features

Mobile Receipt Capture

Drivers upload receipts via mobile app with automatic image enhancement and validation.

AI/OCR Processing

Automated data extraction for amount, date, vendor, and category with 95%+ accuracy.

Role-based Access

Multi-tier permissions for drivers, managers, and accountants with audit trails.

Real-time Analytics

Dashboard with expense trends, category breakdowns, and tax-ready reports.

Smart Categorization

AI automatically categorizes expenses (fuel, maintenance, tolls, meals) based on patterns.

QuickBooks Integration

Seamless sync with accounting software for automated bookkeeping.

Technical Implementation

Technology Stack

Backend

Java 21 Spring Boot 3 Spring Security Spring Data JPA WebFlux

Database & Cache

PostgreSQL Redis Flyway Migrations

AI/OCR & Storage

Google Vision API AWS S3 ImageMagick

Authentication

Keycloak OAuth 2.0 Telegram Login

Infrastructure

Docker Docker Compose AWS EC2 Nginx SSL/TLS

Frontend

Thymeleaf HTML5 CSS3 JavaScript Chart.js

System Architecture

  • Microservices architecture with API Gateway pattern
  • JWT-based authentication with Keycloak identity provider
  • Asynchronous processing for OCR tasks using message queues
  • Redis cache for frequently accessed expense data and user sessions
  • S3-compatible storage for receipt images with lifecycle policies

Receipt Processing Flow

  • Driver uploads receipt image → stored in S3 bucket
  • OCR service processes image → extracts text and data fields
  • AI categorization engine analyzes vendor and amount patterns
  • Data validation and normalization for accounting standards
  • Real-time dashboard updates and notification triggers

Security & Compliance

  • End-to-end encryption for sensitive financial data
  • GDPR-compliant data handling and retention policies
  • RBAC with fine-grained permissions for multi-tenant isolation
  • Audit logging for all financial transactions and user actions

Results & Impact

92%
Reduction in manual data entry
24h
Reimbursement processing
45%
Faster expense reporting
99.5%
OCR accuracy rate

TruqBox transformed expense management for small to medium trucking companies, providing enterprise-grade automation at an affordable SaaS price point.

  • Reduced administrative overhead from 15 hours to 1 hour per truck monthly
  • Eliminated paper receipt storage with digital archiving compliance
  • Improved driver satisfaction with instant receipt submission and faster payments
  • Enabled real-time expense tracking for better financial decision-making
  • Scalable architecture supporting multiple companies with data isolation

Future Roadmap

The MVP success positioned TruqBox for expansion into full Transportation Management System (TMS) capabilities, including dispatch automation, load tracking, and advanced analytics for small US-based trucking companies.