2025 — 2026 · Lead full-stack developer
MED Science / Moldeate World
MED Science & Innovation Systems and its sister brand Moldeate World sell medical-compression bodywear through distributors across the Americas. I designed and built the platform that runs both businesses: a single Next.js codebase that serves the institutional site, a self-contained storefront per country, and a B2B portal where distributors manage orders, invoices and quotes, all kept in sync with the company's Odoo ERP.
- # next.js
- # typescript
- # odoo
- # postgresql
- # stripe
$ cat highlights.md
- Multi-country B2C storefronts (Canada, Peru, Argentina, Saint-Martin) with per-market currency, language, taxes and payment gateway (Stripe, MercadoPago, Square), served from one Next.js 14 App Router codebase in strict TypeScript. Each brand deploys from the same code with its own theme, catalog and database.
- IP-based geo-routing at the edge: visitors land on their market's store, inactive markets are gated behind a signed preview cookie for staff, and traffic from selected countries is redirected to a partner business, while search bots keep indexing the institutional site.
- Two-way synchronization with a self-hosted Odoo Community 19 ERP over XML-RPC: every online order is mirrored as a sale order in the right company and warehouse, portal stock adjustments are pushed to Odoo, and inventory is pulled back nightly per market with idempotent cursors.
- Distributor portal (B2B) with NextAuth, strict company-scoped data isolation between the two brands, order, invoice and quote management, and PDF documents streamed straight from Odoo.
- Neon PostgreSQL with Drizzle ORM and versioned migrations, Upstash Redis rate limiting, Stripe webhooks, Sentry monitoring, and a Vitest suite covering the ERP scoping rules and the stock-sync plans.