Giter VIP home page Giter VIP logo

ecommerce-microservice's Introduction

ECommerce-Microservice

Overview

This project is an e-commerce application built using a microservices architecture with Spring Boot. The application consists of several microservices, each responsible for a specific domain of the e-commerce system. The main components include:

  • User Service
  • Identity Service
  • Product Catalog Service
  • Order Service
  • Shopping Cart Service
  • Review and Rating Service
  • API Gateway
  • Eureka Server for service registry
  • Configuration Service

Architecture

Architecture The application uses the following technologies and concepts:
  • Spring Boot: For creating microservices.
  • Spring Cloud Netflix Eureka: For service registry and discovery.
  • Spring Cloud Gateway: For routing and filtering requests.
  • Feign Client: For inter-service communication.
  • Spring Security & JWT: For authentication and authorization.
  • Jackson: For JSON serialization and deserialization.
  • MySQL Database: For storing data.

Services

Identity Service

Manages user registration, authentication, and profile management.

Endpoints:

  • POST /auth/register
  • POST /auth/token
  • GET /auth/validate?token= {token}

User Service

Manages user

Endpoints:

  • GET /user/profile/{userId}
  • GET /user
  • PUT /user/profile{userId}
  • DELETE /user//profile/{userId}

Product Catalog Service

Manages products and categories.

Endpoints:

  • POST /product
  • POST /product/category
  • GET /product
  • GET /product/category
  • GET /product/{productId}
  • GET /product/category/{categoryId}
  • PUT /product/{productId}
  • PUT /product/category/{categoryId}
  • DELETE /product/{productId}
  • DELETE /product/category/{categoryId}

Order Service

Manages order creation, status updates, and history.

Endpoints:

  • POST /orders: Create a new order.
  • GET /orders/{id}: Get order details.
  • GET /users/{userId}/orders: Get orders by user.

Shopping Cart Service

Manages user shopping carts.

Endpoints:

  • POST /cart/{userId}
  • GET /cart/{userId}
  • PUT /cart/{userId}
  • DELETE /cart/{userId}

Review and Rating Service

Manages product reviews and ratings.

Endpoints:

  • POST /rating
  • GET /rating/{reviewId}
  • GET /rating/product/{productId}
  • GET /rating/user/{userId}
  • PUT /rating/{reviewId}
  • DELETE /rating/{reviewId}

API Gateway

  • Routes and filters requests to appropriate services.
  • Provides a single entry point for client requests.

Eureka Server

  • Service registry for registering and discovering microservices.

Configuration Service

  • Centralized configuration management for all services.

ecommerce-microservice's People

Contributors

yashbrid03 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.