Challenge
A retailer needed a store that could grow into a marketplace without a rewrite: fast search over a large catalogue, promotions that respect EU price-display rules, stock that never oversells across warehouses, and SEO strong enough to compete with the big Romanian players — while keeping card data off its servers.
Solution
One Next.js codebase with strictly separated layers: pages, server actions and the versioned REST API all call the same domain services (catalog, pricing, search, cart, orders, inventory, returns), so the backend is ready for mobile apps. Money is stored in integer minor units with VAT derived per line; search runs inside PostgreSQL (full-text plus pg_trgm) behind a provider interface; stock reservations use row-level locks; payments, couriers, e-mail, storage and AI sit behind adapters that switch on with environment variables. A Postgres job queue drives e-mails, repricing and abandoned-cart reminders.
Results
The full core runs end to end — browse, search, cart, coupon, checkout, order, admin processing, refund and return — with unit and integration tests for pricing, search, sanitising, CSV safety, overselling, refunds and order transitions. External services switch on through configuration, and the admin shows exactly which integrations are still missing.
Our role
Architecture, data modelling, backend and frontend development, search and pricing engines, payments and shipping integrations, SEO, security, admin panel, testing and documentation.