This guide walks you through cloning the repository, configuring your environment, and booting the entire Shop Microservers platform locally with Docker Compose. By the end you will have all four backend services, the Nginx gateway, and the Next.js frontend running onDocumentation 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.
http://localhost — ready to register an account, browse the auto-seeded product catalog, and place your first order.
Prerequisites
Before you begin, make sure the following are available on your machine:
- Docker and Docker Compose (Docker Desktop or Docker Engine ≥ 20.x)
- Port 80 free on your host — or set
GATEWAY_PORTin your.envfile to an alternative port
Steps
Configure your environment
Copy the example environment file and open it in your editor:At minimum, set a strong value for
JWT_SECRET. All other defaults are suitable for local development:Start the full stack
Build all images and start every service in the correct dependency order:Docker Compose will start the databases first, wait for their health checks to pass, then bring up the four microservices, followed by the gateway and finally the frontend. The catalog service automatically seeds 12 products on first boot — you will see seed output in the
catalog container logs.Open the application
Once all containers are healthy, open your browser and navigate to:If you changed
GATEWAY_PORT, use http://localhost:<GATEWAY_PORT> instead.Register an account
Navigate to the registration page and create your account:The auth service issues a JWT on successful registration. The frontend stores it in
localStorage and uses it for all subsequent authenticated requests.Browse, add to cart, and place an order
With your account created, you are ready to use the full shopping flow:
- Browse the 12 auto-seeded products on the home page
- Add items to your cart — the cart service stores your selections in Redis with a 7-day TTL
- Navigate to
/ordersand complete checkout — the orders service will verify stock, decrement it in the catalog, persist the order, and clear your cart in one atomic operation