001
The project
The NexusCart-Microservices-Monorepo repository provides a structured workspace for managing decoupled frontend and backend components of an e-commerce platform. It leverages submodules such as backend and frontend to organize specialized microservices and services efficiently. The architecture supports complex operational workflows ranging from visual template building to race-safe inventory control and multi-currency order handling.
The primary purpose of this monorepo is to streamline the development and deployment of a multi-service e-commerce ecosystem. It establishes clear organizational boundaries between the frontend user interface and backend services while maintaining seamless integration through automated workflows. This design ensures that high-volume operations like inventory management and payment routing remain reliable and maintainable.
The platform serves end customers seeking a dynamic e-commerce shopping experience with features like live currency conversion and order tracking, as well as administrators utilizing visual template builders and inventory controls to manage products and promotions.
002
What it does
8 evidenced features
- 01
Flexible auth — email/password with OTP verification, or Google one-tap login.
- 02
Multi-currency — live exchange rates, switch currency anywhere, prices stay consistent across cart/checkout/invoices.
- 03
Real payments — checkout redirects to PayHere's hosted, MD5-signed payment page for card/wallet, or Cash on Delivery with no gateway involved.
- 04
Order tracking & invoices — paginated order history with live status polling, printable itemized invoices, and status-change emails.
- 05
Reviews & ratings on products.
- 06
Inventory control — stock in/out adjustments with a capped movement history per product, backed by atomic, race-safe updates (never goes negative under concurrent orders).
- 07
Visual template builder — compose banners and product rails from the same 7–8 layout system customers see, with live position/order control.
- 08
Promotions engine — storewide, per-category, or per-product discounts, auto-applied at the best rate.
003
How it works
Backend Submodule Boundary
The backend boundary is provided by the backend submodule located at backend, assembled into the main repository at commit 70a76a15331a. It contains server-side components and services built using JavaScript and TypeScript.
Frontend Submodule Boundary
The frontend boundary is provided by the frontend submodule located at frontend, integrated into the repository at commit 204b847a5da2. It encapsulates user interface logic using Next.js, React, TypeScript, and Tailwind CSS.
Delivery and Quality Workflows
Delivery and quality assurance are governed by workflow files including .github/workflows/notify-resume.yml and backend/.github/workflows/deploy-backend.yml. These configurations define the implementation path for continuous integration and deployment processes across the monorepo.
004
Challenge
Modern e-commerce platforms often struggle with monolithic codebases that entangle frontend presentation logic, backend microservices, inventory management, and multi-currency transactions. Without a decoupled monorepo architecture, scaling individual services and maintaining race-safe inventory updates during high-concurrency order events becomes extremely difficult. Furthermore, coordinating distributed modules while ensuring consistent checkout and payment handling creates significant engineering complexity.
005
Implementation
The repository solves these architectural challenges by establishing a structured monorepo workspace containing decoupled frontend and backend submodules. It implements atomic, race-safe inventory adjustments and integrates specialized engines for promotions, multi-currency exchange rates, and visual template building. Additionally, automated CI/CD pipelines via GitHub Actions and containerization through Docker ensure reliable delivery and consistent environment management across services.
006
Technology stack
Cloud
AWS SDK
DevOps
GitHub Actions
Docker
Frontend
Next.js
React
TypeScript
JavaScript/TypeScript
Tailwind CSS
007
Repositories
Verified source links for this project.


