Skip to content

section: projects/megateks-inventory-management

MegaTeks Inventory Management

A web application that replaces paper A4 forms and Excel files in stock management for a five-person team: a FastAPI and React modular monolith on PostgreSQL, delivered in small, tested phases.

Context

MegaTeks is a small business with a five-person team. Stock records were kept on paper A4 forms and in Excel files.

Problem

Paper forms and spreadsheets are manual work, and keeping them in step depends on people copying the same information between them. The team needed one place to record and look up stock that is comfortable to use day to day.

Approach

  • Ease of use first. The goal is an application the team finds more comfortable than the paper and spreadsheet routine it replaces.
  • Modular monolith. One deployable backend with clear layers — API, application services, domain and infrastructure — instead of microservices the team would have to operate.
  • Security by default. Role-based access control with deny-by-default permissions and secure session handling.
  • Small, recorded steps. Work ships in phases through pull requests, and key architectural decisions are written down as ADRs. Production schema migrations are forward-only.

Architecture

request pathtext
browser ──▶ reverse proxy ──┬─▶ React SPA
                            └─▶ FastAPI API ──▶ PostgreSQL

Services run as containers. Every change goes through CI on GitHub Actions: linting, type-checking, unit and integration tests, dependency audits, container image builds and browser tests in an isolated test environment.

Outcome

The project is in active development and not yet in day-to-day use. Sign-in and sessions, role-based permissions and back-end management of products, categories, customers and suppliers are in place, covered by unit, integration and browser tests. The stock-tracking core is the current phase.