PROJECT 01← All work

Cloud delivery / inventory systems

StockPilot

An inventory app with an auditable stock ledger and a tested Kubernetes delivery pipeline.

FOCUS

Inventory workflow, delivery pipeline, infrastructure, and observability

STACK

React · FastAPI · PostgreSQL · Docker · Kubernetes · Helm · Terraform · AWS EKS · Flux · Prometheus · Grafana

STATUS

Open-source project with a documented AWS EKS deployment

OVERVIEW

StockPilot gives small businesses a product catalog and a record of every stock movement. A React dashboard and FastAPI service share a PostgreSQL database. The delivery pipeline builds and scans images, exercises them in Kubernetes, and checks the service through its ingress.

StockPilot dashboard showing inventory totals, the product catalog, and recent stock movements
StockPilot running on AWS EKS in October 2026.
02

Architecture

STOCKPILOT / SYSTEM FLOW
  1. 01REQUEST

    Traefik routes the UI and API through one origin.

  2. 02APPLY MOVEMENT

    FastAPI validates the adjustment and updates the ledger in PostgreSQL.

  3. 03VERIFY RELEASE

    GitHub Actions builds source-tagged images and tests them on a disposable kind cluster.

  4. 04OBSERVE

    Prometheus collects API metrics that Grafana displays.

BOUNDARYPostgreSQL holds the stock balance and movement history. CI validates releases on kind. The AWS deployment was provisioned and exercised separately.

React talks to FastAPI through a same-origin API route. PostgreSQL stores product records and stock movements, and Alembic manages schema migrations. Kubernetes runs the application and database, with Helm defining the release and Terraform provisioning the AWS infrastructure.

03

Key decisions & trade-offs

A stock adjustment updates the balance and records its reason and resulting quantity in one database transaction. Requests that would take the balance below zero are rejected, and the ledger gives operators a way to reconcile inventory changes.

CI uses disposable kind clusters to test Helm, ingress, monitoring, and Flux reconciliation. The AWS environment used a separate manual Helm deployment so the infrastructure and browser workflows could be exercised on EKS.

04

Verification / results

The project’s recorded CI baseline passed 44 PostgreSQL tests with 97.67% backend coverage. Browser checks covered desktop and mobile inventory workflows, including rejection of excessive stock adjustments.

The AWS capture shows two ready application replicas per tier, persistent database storage, and live Prometheus metrics displayed in Grafana.

05

Limitations

The captured AWS environment was subsequently decommissioned. The documented EKS deployment was manual, and the automated cloud deployment job remains disabled.

NEXT PROJECT / 02

CLEAR