Quick start
Get the entire QeetMart platform running on your local machine in about 15 minutes.This guide will start all microservices, databases, and optionally the frontend applications.
Prerequisites
Before starting, ensure you have these tools installed:- Node.js 22.x or later (download)
- pnpm 10.x or later (
npm install -g pnpm) - Java 17 or later (OpenJDK)
- Go 1.23 or later (download)
- Docker with Docker Compose v2 (download)
Install dependencies
Install all Node.js dependencies across the monorepo:This installs dependencies for:
- API Gateway
- Web, Admin, and Mobile apps
- Shared packages
- Documentation platform
Start the backend stack
Launch all services and databases with Docker Compose:This command:
- Builds Docker images for all services
- Starts PostgreSQL databases (auth_db, user_db, product_db, inventory)
- Starts Redis for inventory caching
- Launches API Gateway on port 4000
- Starts all microservices with health checks
First run takes 3-5 minutes to build images. Subsequent starts are much faster.
Service endpoints
Once running, these endpoints are available:| Service | URL | Description |
|---|---|---|
| API Gateway | http://localhost:4000 | Main entry point for all APIs |
| Gateway Health | http://localhost:4000/health | Gateway health check |
| Service Health | http://localhost:4000/health/services | All services status |
| Gateway Info | http://localhost:4000/info | Service registry information |
| Auth Service | http://localhost:4001 | Direct auth service access |
| User Service | http://localhost:8082 | Direct user service access |
| Product Service | http://localhost:8083 | Direct product service access |
| Inventory Service | http://localhost:8080 | Direct inventory service access |
| Web App | http://localhost:3000 | Customer-facing web application |
| Admin Panel | http://localhost:5173 | Admin dashboard |
Understanding the API Gateway
The API Gateway (micros/api-gateway/src/index.ts:1) handles:- Request routing - Proxies requests to appropriate microservices
- Authentication - JWT validation for protected routes
- Rate limiting - 1000 requests per minute per IP by default
- CORS - Cross-origin request handling
- Error handling - Unified error responses
Gateway route mapping
API routes are mapped to services in micros/api-gateway/src/config/services.ts:55:Docker Compose configuration
The docker-compose.dev.yml file defines the complete stack:Common tasks
View logs
Check running containers
Restart a service
Stop the stack
Development workflows
After initial setup, use these commands for daily development:Troubleshooting
Services won’t start
Issue: Docker containers fail to start Solution: Check if ports are already in useDatabase connection errors
Issue: Services can’t connect to PostgreSQL Solution: Wait for database health checks to passReact 19 peer dependency warnings
Issue: pnpm shows peer dependency warnings during install Solution: These are expected. The root package.json includes peerDependencyRules to handle packages that haven’t updated to React 19 yet.Build script approval warnings
Issue: pnpm warns about unapproved build scripts Solution: Run the interactive approval tool:Next steps
Explore the architecture
Understand how services communicate and data flows through the system
API documentation
Browse the API reference to start building integrations
Configuration guide
Learn about environment variables and service configuration
Deployment
Deploy QeetMart to Kubernetes using the provided manifests and Helm charts
All default credentials are set to
postgres/postgres for local development. Always rotate these for any non-local environment.