Socket
Book a DemoInstallSign in
Socket

github.com/izharishaksa/ecommerce-system-example

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/izharishaksa/ecommerce-system-example

Source
Go
Version
v0.0.0-20240330170534-cab109e04712
Version published
Created
Source

Simple Ecommerce System

Project page: https://github.com/users/izharishaksa/projects/6/views/1

Implementing Event Driven Architecture and use Domain Driven Design approach.

Customer Service Inventory Service Order Service

Run instructions

  • Run docker-compose up
  • Please wait until all services running
  • Demonstrate using ecommerce-system-example.postman_collection.json

Test Case Scenario

  • Create product POST /products
  • Register customer POST /customers
  • Create order POST /orders, order status is placed, event ORDER_PLACED is sent
  • ORDER_PLACED is consumed by inventory-service, if inventory is enough or product is exist, event ORDER_CREATED is sent, otherwise ORDER_REJECTED. Stock and sold are updated accordingly.
  • ORDER_CREATED is consumed by order-service, status and total price is updated
  • ORDER_REJECTED is consumed by order-service, status is updated

FAQs

Package last updated on 30 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts