FreightFolio

Overview

FreightFolio was a logistics SaaS platform built for small and mid-sized trucking carriers to reduce reliance on spreadsheets and automate daily operational tasks such as load tracking, invoicing, and payment reconciliation.

Active development is paused; the venture behind it ended before launch in 2025. The system is a backend built from modular FastAPI services with production-grade AWS Cognito authentication, and a data model designed for multi-tenancy - similar to the kind of software powering real logistics and ERP platforms. The source is private; a public overview repo describes the system, and code walkthroughs are available on request.


Purpose

The goal of FreightFolio was to create a backend-driven SaaS product that demonstrates my ability to architect, document, and build data-heavy backend applications that solve real business problems.

It bridges backend engineering and business process automation — replacing fragmented workflows with structured data models and validated API workflows for freight management, billing, and customer visibility.


Architecture & Implementation

FreightFolio is composed of several independent services tied together through a shared PostgreSQL instance and modular service layer:

  • Core API (FastAPI):
    Handles tenants, loads, invoices, and user authentication.
    Endpoints follow REST conventions with full OpenAPI documentation and Pydantic-based validation.

  • Data Model & Persistence:
    A PostgreSQL design with per-service Alembic migrations provides per-service schema separation and safe schema evolution today; tenant-scoped data isolation is designed but not yet enabled.
    The ORM layer uses SQLAlchemy 2.0 with typed models and foreign key constraints to preserve relational integrity.

  • Domain Workflows:
    Load, invoice, and payment operations are handled as structured, validated API workflows across the services.
    Scheduled background automation (invoice generation, payment reminders, load status updates) is scoped but not yet built, mirroring the automation layer found in real TMS (Transportation Management Systems).

  • Authentication & Security:
    Implements AWS Cognito-based authentication (RS256 JWT verification with JWKS caching and key rotation), role-based permissions, and middleware for secure route access.

  • CI/CD & Testing:
    Uses Pytest for unit and integration testing; GitHub Actions CI remains incomplete.
    Each service includes Dockerfiles for consistent containerized builds; the system has not been deployed to a cloud environment.


Technical Highlights

  • Designed the data model for multi-tenancy, with tenant-scoped isolation designed but not yet enabled.
  • Engineered per-service Alembic migrations, ensuring modular and safe schema evolution.
  • Implemented AWS Cognito authentication and role-based access control for multi-user workflows.
  • Modeled invoicing, payment tracking, and load management as structured API workflows, with scheduled automation planned but not yet built.
  • Employed structured logging and environment-based configuration in preparation for cloud deployment.

Results

  • A functional backend covering the operations of a logistics SaaS platform, with load, invoice, and auth services working end to end locally.
  • Replaces spreadsheet workflows with structured data models and API-driven workflows for load management, invoice creation, and payment tracking.
  • Pytest unit and integration tests cover routes and services.
  • Modular architecture allows each domain (loads, invoices, payments) to evolve independently.
  • Documented with clear API specs and onboarding guides for future integration with a frontend or third-party dashboard.
  • A simple KPI dashboard, built as the starting point for the planned analytics work.

Remaining Roadmap

Scoped but unbuilt - where the project picks up if I return to it:

  • Expanded analytics dashboards visualizing loads, revenue, and customer data.
  • Third-party API integrations (route optimization, carrier load boards).
  • Event-driven workflows (AWS Lambda or Celery for async automation).
  • Cloud deployment on AWS.

The architecture, auth, and data-modeling work already carries forward into how I design backend systems.


Stack

Languages & Frameworks: Python, FastAPI, SQLAlchemy, Alembic, Pydantic
Auth: AWS Cognito (with SES for transactional email)
Database: PostgreSQL
Testing & CI/CD: Pytest; GitHub Actions CI incomplete
Deployment: Docker Compose locally; not deployed to the cloud


Key Takeaway

FreightFolio demonstrates how I build well-structured backend systems around real business workflows.
It reflects strong skills in API design, data modeling, DevOps, and system modularity — the same skills required for backend or platform engineering roles.

The project mirrors the architecture of real SaaS logistics products and serves as a concrete example of my ability to design, document, and build reliable backend software.