Ecommerce Development / Retail

AmazonShop.lk

An ecommerce platform for a Colombo-based mobile phone, accessories and desktop devices retailer, taking a walk-in-only store online with secure accounts, a live cart and an AI shopping assistant.

RetailColombo, Sri LankaMERN Stack
AmazonShop.lk mobile and electronics ecommerce website shown on desktop, tablet and mobile

Full showcase of the AmazonShop.lk platform across desktop, tablet and mobile.

AmazonShop.lk - desktop storefront view
AmazonShop.lk - tablet catalogue view
AmazonShop.lk - mobile storefront view
AmazonShop.lk - full platform showcase

01 - About this project

AmazonShop.lk is an ecommerce platform for a mobile phone, accessories and desktop devices retailer that, until this project, ran entirely out of a single physical store in Colombo. It's built as a full-stack MERN application with React and Vite on the frontend, and a security-first Node.js and Express backend handling authentication, sessions, orders and an AI-powered support assistant.

02 - How it was built

The challenge, the approach, the outcome.

01 / The Challenge

The retailer operated walk-in only - no online ordering, no way to browse stock from home, and no digital sales channel for customers who preferred to shop online. The brief was to let customers browse, filter, add to cart and check out securely without visiting the store, while giving staff a clean admin dashboard to manage products, orders, customers and reviews without touching the database directly. The project was delivered sprint by sprint under a formal Agile process, with its own risk, quality and scheduling management alongside the build itself.

02 / Our Approach

The storefront is built with React, Vite and Zustand for lightweight state management, styled with Tailwind CSS and backed by an Axios service layer. Authentication was treated as its own system rather than a bolt-on: customer and administrator logins use separate JWT secrets, audiences, cookies and session records, with short-lived access tokens held only in memory and refresh tokens delivered as HttpOnly cookies, hashed before they ever reach the database. Refresh-token rotation includes a grace window so multiple tabs and concurrent requests don't incorrectly revoke a valid session, and genuine token reuse revokes the entire session family. On top of that, we integrated Google OAuth account linking and a Google Gemini-powered chatbot for customer support and product recommendations.

03 / Delivered Solution

The current build is frontend-first by design: the customer-facing pages, admin layout and checkout flow are built out, with the authentication, session and account-security layer already production-grade - OTP email verification, password recovery, session device/browser tracking, one-click revocation of other sessions, and account export/deletion with anonymisation that preserves order records for accounting and fraud prevention. Some storefront sections still use placeholder data while the payment gateway and remaining admin features are completed in later sprints.

Tech stack

ReactViteZustandTailwind CSSNode.jsExpressMongoDBJWTGoogle OAuthStripe / PayHereGoogle Gemini API

03 - Key features

What shipped in this build.

01

Product catalogue with category and brand filtering

02

Secure registration, login and profile management

03

Separate customer and administrator authentication systems

04

HttpOnly refresh cookies with rotation and reuse detection

05

Google OAuth sign-in with safe account linking

06

HMAC-hashed OTP email verification and password reset

07

Session management - device, browser, IP and one-click revocation

08

Live shopping cart and variant-aware wishlist with guest merge

09

AI chatbot powered by Google Gemini for support and recommendations

10

Order history and order status tracking with in-app notifications

11

Retrying email delivery for order and account notifications

12

Admin panel for products, categories, orders, users and reviews

13

Account data export and deletion with anonymisation

14

Administrator audit logging and account lockout protection

How to review this case study

When assessing AmazonShop.lk, consider how the authentication architecture, sprint-based delivery and account-security features respond to the goal of moving a walk-in-only retailer online. This page documents delivered functionality and implementation decisions at the current stage of a project still in active sprints; it does not claim revenue, traffic or conversion results the client has not provided and verified. Ask us for the relevant technical detail if you're planning a project with similar authentication or session-security requirements.

Let's work together

Let's see what your business
could actually run on.

30-minute call. We look at where your time actually goes - enquiries, orders, reports - and tell you honestly which layers would earn their keep first.