Industrial ERP / Case 02

ALH Workspace.

A custom ERP I designed and built single-handedly for a cosmetics manufacturing plant. It brings dock logistics, quality, maintenance, production, HR and IT together in one web application.

  • Python
  • FastAPI
  • SQLite
  • Machine Learning
  • Gemini API
Module diagram · conceptual representation
lines of Python
~79,000
HTTP endpoints
407
SQLite tables
~81
domain modules
33
HTML templates
103
departments
6+

01 / Context

The starting point.

ALH Cosmetics manufactures and packages fragrances and cosmetics. Dock logistics, quality control, maintenance, production and staff management were scattered across paper, Excel sheets and email, with no shared place and no traceability.

02 / My contribution

From analysis to practice.

A solo project from start to finish, as part of my IT and maintenance role: analysis with each department, design, backend, frontend, database, Machine Learning layer, deployment and production maintenance.

Understand the plant

Turn each department’s records and alerts into concrete modules and workflows.

Build and validate

Develop, test on the shop floor and refine with the people who use it daily, with zero-data-loss migrations in production.

Integrate and maintain

Connect to SAP, IRIS and Microsoft 365 and keep extending the system as new needs arise.

03 / Scope

What it solves.

Six areas of the plant in a single application, with per-user roles and permissions.

Logistics and docks

Dock booking with a visual calendar, suppliers and slot blocking. Sends an email when an order matches its booking.

Value: No overlapping unloads and no trucks left waiting.

Quality and inspection

Configurable checks and tiered incoming-material inspection (ZQ1/ZQ2/ZQ3), synced with IRIS.

Value: Traceability and regulatory compliance for the cosmetics sector.

Incidents with Machine Learning

Incident logging with Excel and PDF reports, plus clustering and a severity classifier that spots patterns.

Value: Isolated incidents turned into data that prevents failures.

Industrial maintenance

Machine records with QR codes, interventions, spare parts, checklists and infrastructure.

Value: Full history just by scanning the machine.

Production and legal documents

Metrological weighing and PDF consignment notes with QR and dangerous-goods (ADR) autofill.

Value: Legal transport documents in seconds, without manual errors.

Management, IT and AI

HR, CRM, document management, calendar, IT dashboard, internal chat and a generative AI assistant (Gemini).

Value: One tool for the whole organisation.

04 / Outcome

What it delivers.

A single system that brings together the whole plant’s daily work, from dock receiving to machine maintenance.

  • Covers six-plus departments end to end.
  • Digitises processes that used to run on paper, Excel and email.
  • Reduces dependence on commercial software licences.
  • Integrates with SAP, IRIS and Microsoft 365, solving real interoperability problems.

05 / Skills

What it shows.

Backend / API
Python and FastAPI, 407 REST endpoints, modular router architecture, bcrypt authentication, roles and permissions.
Databases
Modelling ~81 SQLite tables and idempotent production migrations with no data loss.
Frontend
Jinja2 and Bootstrap 5, responsive UI with light/dark theme, PWA with push notifications.
Data, AI and ML
Incident clustering and classification, generative AI (Gemini) and scraping with Playwright.
Documents
PDFs with ReportLab, QR codes and Excel reports with openpyxl.
DevOps / Systems
HTTPS deployment, PyInstaller packaging, automated backups and SAP, IRIS and Microsoft 365 integration.
Quality
Tests with pytest, global error handling and logging.

Let's keep the conversation going

Have a similar challenge?

Tell me about it