Developer Docs

Mallnline Developer Docs

Build integrations, embed widgets, and extend the Mallnline platform.



๐Ÿš€ Getting Started

1. Clone & Install

git clone git@github.com:mallnline/ngwenya-front.git
cd ngwenya-front
pnpm install

2. Start Dev Server

pnpm dev

Runs on localhost:5173 with HMR. Proxies forward /graphql and /api/auth to backend.

3. Build Widget Bundle

pnpm build:widget

Produces dist/widget/ucart.js for external embedding.


๐Ÿ— Architecture

Layer Technologies
Frontend SvelteKit 2, Svelte 5 Runes, Vite 8, TypeScript
Design System $mall Tokens, CSS Variables, Custom Icons
Backend NestJS 11 Gateway, Hive Gateway, GraphQL Federation
Widget SDK Standalone IIFE, Svelte 5 mount(), Shadow DOM (See Mobile SDK Architecture)

๐Ÿ“‹ Quick Reference

Command Description
pnpm dev Start dev server
pnpm build Production build
pnpm check Type checking
pnpm lint ESLint + Prettier
pnpm test:unit Vitest unit tests
npx playwright test E2E Playwright tests
pnpm build:widget uCart widget bundle