Skip to content

bcaua321/ecommerce-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Microservices Platform

🚧 Work in Progress 🚧

A microservices-based e-commerce application built with Spring Boot 3.5.10 and Java 17.

Services

  • User Service (Port 8082): User accounts and addresses
  • Product Service (Port 8083): Product catalog and inventory
  • Order Service (Port 8080): Order processing (planned)

Tech Stack

Java 17 | Spring Boot 3.5.10 | Maven | Spring Data JPA | H2/PostgreSQL | Lombok | Actuator | Prometheus | Zipkin

Quick Start

# User Service
cd user && ./mvnw spring-boot:run

# Product Service
cd product && ./mvnw spring-boot:run

# Order Service
cd order && ./mvnw spring-boot:run

API Endpoints

User Service (http://localhost:8082)

GET    /api/users       - List all users
GET    /api/users/{id}  - Get user by ID
POST   /api/users       - Create user
PUT    /api/users/{id}  - Update user

Product Service (http://localhost:8083)

GET    /api/products                    - List products
GET    /api/products/{id}               - Get product
POST   /api/products                    - Create product
PUT    /api/products/{id}               - Update product
DELETE /api/products/{id}               - Delete product
GET    /api/products/search?keyword=... - Search products

H2 Console

  • User: http://localhost:8082/h2-console
  • Product: http://localhost:8083/h2-console
  • JDBC URL: jdbc:h2:mem:test | Username: sa | Password: password

Monitoring

  • Health: http://localhost:8082/actuator/health
  • Metrics: http://localhost:8082/actuator/metrics
  • Prometheus: http://localhost:8082/actuator/prometheus

Architecture

Microservices with layered architecture: Controller → Service → Repository → Entity

Patterns: Repository, DTO, Soft Delete, RESTful API

Future Features

Service Discovery (Eureka) | Config Server | Event-Driven (AMQP) | API Gateway | Security (JWT) | MongoDB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages