Skip to content

About

Development Challenge for technical interview session

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ecomm-app

A merchant marketplace built with Node.js, TypeScript, AWS Lambda, DynamoDB, and a React + Vite + Tailwind UI.

The stack runs locally with Docker: Lambda handlers execute in the real Lambda runtime (via RIE containers) against DynamoDB Local, behind a small Express gateway.

Prerequisites

  • Node.js 22+ — macOS brew install node · Windows winget install OpenJS.NodeJS
  • pnpm 9+ — npm install -g pnpm
  • Docker — macOS brew install --cask docker · Windows winget install Docker.DockerDesktop

Quick Start

pnpm install          # install dependencies
cp .env.example .env   # copy environment config
pnpm build            # build the Lambda bundle
pnpm docker:start     # start DynamoDB Local (:8001) + 9 Lambda containers (:9001–9009)
pnpm seed             # seed 10 merchants, 20 products each, 5 orders each
pnpm start            # start the gateway (:3000) + UI (:5173)

Open http://localhost:5173 and pick any merchant — or the admin identity — from the dropdown.

After changing backend code, rebuild the Lambda images with pnpm docker:build so the containers pick up your changes.

Development

pnpm test          # run unit tests
pnpm ui:test       # run the Playwright E2E suite (starts gateway + UI automatically)
pnpm build         # rebuild the Lambda bundle
pnpm docker:build  # rebuild all Lambda Docker images after code changes
pnpm docker:stop   # stop all containers
pnpm ui:dev        # start the UI only
pnpm ui:build      # build the UI for production

Project Structure

ecomm-app/
├── packages/
│   ├── api/          # Lambda backend (handlers, services, repositories)
│   └── ui/           # React + Vite + Tailwind frontend
├── gateway/          # Express HTTP → Lambda event shim (routes to ports 9001-9009)
├── scripts/          # Seed data and token generation
├── Dockerfile.lambda # Shared Lambda image (one per container, different command)
└── docker-compose.yml

About

Development Challenge for technical interview session

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages