百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

ecommerce-microservices

> 前端框架
开源

⚡️ 电子商务项目的微服务架构及系统! 使用 Spring Cloud 的 Spring Boot 微服务应用,强大而灵活的后端可管理电子商务项目。

364 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

⚡️ 电子商务项目的微服务架构及系统! 使用 Spring Cloud 的 Spring Boot 微服务应用,强大而灵活的后端可管理电子商务项目。


Overview

ecommerce-microservices is a production-grade, cloud-native e-commerce platform built with a microservice architecture. It consists of 13 Spring Boot 3 backend services, an Apache APISIX API Gateway, a Next.js 16 frontend, and a full suite of infrastructure — all deployable on Kubernetes (k3d) with a single command.

⚡ Backend 13 microservices · Java 21 · Spring Boot 3.3.5
Gateway Apache APISIX 3.9 · Rate limiting · JWT validation
️ Databases PostgreSQL 16 · Redis 7 · Elasticsearch 8
Messaging Apache Kafka 3.9 (KRaft mode, no Zookeeper)
Auth Keycloak 26 · OAuth2 / OIDC · JWT
☁️ Storage RustFS (S3-compatible)
Deploy Docker Compose · k3d / Kubernetes · ArgoCD

️ Technology Stack

Backend

Runtime Java 21 (Virtual Threads)
Framework Spring Boot 3.3.5, Spring Security 6, Spring Data JPA
Database PostgreSQL 16, Liquibase migrations
Search Elasticsearch 8, Spring Data Elasticsearch
Messaging Apache Kafka 3.9 (KRaft), Spring Kafka
Security Keycloak 26, OAuth2 / OIDC, JWT, Spring Security Resource Server
Gateway Apache APISIX 3.9 (OpenID Connect, rate limiting, CORS)
Storage RustFS (S3-compatible), AWS SDK v2
Observability Micrometer, Prometheus, Spring Boot Actuator
API Docs Springdoc OpenAPI 3, Swagger UI w/ PKCE
Resilience Resilience4j (circuit breaker, retry)
Build Maven, Jib (Dockerless containerization)

Frontend

Framework Next.js 16.2, React 19.2
State Zustand 5, TanStack Query 5
Styling Tailwind CSS 4, Lucide icons
HTTP Axios

Infrastructure

Local K8s k3d (K3s in Docker), NGINX Ingress Controller
Production Kubernetes, ArgoCD (GitOps)
Registry GitHub Container Registry (ghcr.io)
CI GitHub Actions, SonarCloud

Quick Start

Prerequisites

  • Docker Desktop (macOS / Windows) or Docker Engine (Linux)
  • 8 GB+ RAM allocated to Docker

One-Command Setup (k3d)

bash
git clone https://github.com/hoangtien2k3/ecommerce-microservices.git
cd ecommerce-microservices
bash start-ecommerce.sh

The script automatically:

  1. Installs k3d and kubectl (if missing)
  2. Creates a local Kubernetes cluster
  3. Deploys NGINX Ingress Controller
  4. Applies secrets, config maps, and infrastructure (PostgreSQL, Redis, Kafka, Elasticsearch, RustFS, Keycloak)
  5. Deploys APISIX gateway + all 13 backend services + frontend
  6. Updates /etc/hosts

Wait ~5 minutes for all pods to become ready:

bash
kubectl get pods -n ecommerce -w

URLs

Service URL
Frontend http://ecommerce.local
API Gateway http://api.ecommerce.local
Keycloak Admin http://keycloak.ecommerce.local
RustFS Console http://rustfs.ecommerce.local/rustfs/console

Project Structure

…

Observability

Every service exposes:

  • Health: /actuator/health (liveness + readiness on port 9000)
  • Metrics: /actuator/prometheus (Micrometer + Prometheus)
  • Distributed Tracing: Correlation ID (X-Correlation-Id) propagated across all services
  • APISIX Metrics: Prometheus metrics on port 9091

Stats

Contributing

If you would like to contribute to the development of this project, please follow our contribution guidelines.


License

MIT License
Copyright (c) 2026 Hoàng Anh Tiến

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaconfig-serverdiscovery-serverdockerjava

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架