Audemars Piguet: moving an internal app off Mendix

I proposed replacing an internal Mendix app with custom code, then rebuilt it: NestJS, React, Infor M3 ERP, Azure AD.

Context

At the Digital Factory, an internal app ran on Mendix, a low-code platform. I proposed rebuilding it as custom code, connected to the Infor M3 ERP through the Axway API Gateway.

My role

I proposed the rebuild, then delivered it as the full-stack developer: NestJS API, React front end, integrations, authentication and security.

Key decisions

  1. Propose leaving Mendix

    Custom code puts the Axway and M3 integration, security and maintenance in our hands, with no dependency on a low-code platform.

  2. Call the ERP with the On-Behalf-Of flow

    The NestJS API calls Axway and M3 as the signed-in user, not as a service account. Permissions stay those of the user, end to end.

  3. Build RBAC and security hardening into the rebuild

    The app touches production data. Each role only reaches what it needs, from the first release.

Outcome

Mendix is decommissioned. The app now runs as custom code: item and operation search with direct access to PDFs, bills of materials (BOM) and search history.

Stack

  • NestJS
  • React
  • Axway API Gateway
  • Infor M3
  • Azure AD (MSAL)
  • MongoDB
  • Prisma