Cloud delivery / inventory systems
StockPilot
An inventory app with an auditable stock ledger and a tested Kubernetes delivery pipeline.
Inventory workflow, delivery pipeline, infrastructure, and observability
React · FastAPI · PostgreSQL · Docker · Kubernetes · Helm · Terraform · AWS EKS · Flux · Prometheus · Grafana
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.

Architecture
- 01REQUEST
Traefik routes the UI and API through one origin.
- 02APPLY MOVEMENT
FastAPI validates the adjustment and updates the ledger in PostgreSQL.
- 03VERIFY RELEASE
GitHub Actions builds source-tagged images and tests them on a disposable kind cluster.
- 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.
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.
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.
Limitations
The captured AWS environment was subsequently decommissioned. The documented EKS deployment was manual, and the automated cloud deployment job remains disabled.