Skip to content

Spring Boot-based Microservice E-Commerce API Project. Includes Inventory, Orders, Notifications, Products, Discovery (Eureka), and API Gateway services.

Notifications You must be signed in to change notification settings

canermastan/E-Commerce-Microservices

Repository files navigation

E-Commerce Microservices API

This project is developed using Spring Boot and is an example of an API developed with a microservices architecture for e-commerce platforms. The project consists of the following services:

  • InventoryService: Manages product inventory.
  • OrderService: Manages orders.
  • NotificationService: Sends notifications to users.
  • ProductService: Manages products.
  • Discovery: Provides Eureka service discovery.
  • API Gateway: Provides a central access point to all services.

Spring Eureka Overview

Spring Eureka

Service Descriptions

InventoryService

Used to manage product inventory.

Features

  • Checks stock availability.

Example API Call

GET /api/inventory

OrderService

Manages order processing.

Features

  • Creates orders.

Example API Call

POST /api/order

ProductService

Manages product information.

Features

  • Adds products.
  • Displays product details.
GET /api/product

Discovery

Provides service discovery using Eureka. It allows all microservices to find and communicate with each other.

Features

  • Service registration and discovery.
  • Dynamic load balancing.

API Gateway

Provides a central access point to all services. It routes requests to the appropriate microservices.

Features

  • Centralized authentication.
  • Load balancing.
  • API routing.

Installation

Requirements

  • JDK 17
  • Docker

Installation Steps

  1. Clone the project:
git clone https://github.com/your-username/ecommerce-microservices-api.git
cd ecommerce-microservices-api
  1. Start the services with Docker Compose:
docker-compose -f docker-compose.yml up -d
  1. Access the Eureka Dashboard:
http://localhost:8761
  1. Access the services through the API Gateway:
http://localhost:8080

Contributing

To contribute to this project, please open a pull request or create an issue.

About

Spring Boot-based Microservice E-Commerce API Project. Includes Inventory, Orders, Notifications, Products, Discovery (Eureka), and API Gateway services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages