Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/astrxnomo/shop-microservers/llms.txt

Use this file to discover all available pages before exploring further.

Shop Microservers is a production-ready e-commerce reference architecture built entirely on microservices. Four independent Node.js/TypeScript services — authentication, product catalog, shopping cart, and order processing — sit behind an Nginx API gateway, with a Next.js 15 frontend as the user interface. The whole stack spins up with one command using Docker Compose.

Quickstart

Get the full stack running locally in under five minutes

Architecture

Understand how the services, gateway, and databases connect

API Reference

Explore every endpoint across all four microservices

Configuration

Configure environment variables, ports, and secrets

What’s inside

Auth Service

JWT-based registration and login backed by PostgreSQL

Catalog Service

Product listing and stock management with auto-seeding

Cart Service

Ephemeral per-user cart stored in Redis with 7-day TTL

Orders Service

Transactional checkout: verify stock, persist order, clear cart

Nginx Gateway

Single entry point routing all traffic to upstream services

Next.js Frontend

App Router SPA communicating exclusively through the gateway

Getting started

1

Clone the repository

git clone https://github.com/astrxnomo/shop-microservers.git
cd shop-microservers
2

Set up environment variables

cp .env.example .env
Edit .env and set a strong JWT_SECRET. All other defaults work out of the box.
3

Start the stack

docker compose up --build
Docker builds all images and starts every service. The first run takes a few minutes as images are pulled and databases initialised.
4

Open the app

Navigate to http://localhost in your browser. The catalog is pre-seeded with 12 products — register an account and start shopping.

Tech stack

LayerTechnology
Backend servicesNode.js, TypeScript, Express, Prisma
FrontendNext.js 15, React 19, Tailwind CSS, Radix UI
DatabasesPostgreSQL 16 (catalog, orders — shared by auth and orders), Redis 7 (cart)
GatewayNginx
OrchestrationDocker Compose

Build docs developers (and LLMs) love