Skip to content

aryan-basu/ecommerce-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ“‘ API Endpoints

🧾 Order Service

Method Endpoint Description
POST /api/orders Create a new order
GET /api/orders/{id} Not available yet

Currently, no API is implemented for retrieving order details (i.e., the GET /api/orders/{id} endpoint is not available).


πŸ“¬ Email Notification

  • Uses Spring Mail to send emails through Gmail.
  • App password is used for Gmail authentication.

πŸš€ Features

  • πŸ“¦ Decoupled architecture using Kafka for event streaming
  • πŸ“‘ Real-time updates for inventory and payment handling
  • βœ‰οΈ Email notification system for order status
  • πŸ§ͺ Easy to scale and test each microservice independently

πŸ› οΈ Running Locally

  1. Start Kafka locally (ensure Kafka and Zookeeper are running):
    • Follow instructions to set up Kafka and Zookeeper locally.
  2. Run each microservice individually:
    • Each service can be run via Spring Boot. Ensure the correct port configurations for each service.
  3. Use Postman or any HTTP client:
    • Hit POST /api/orders to simulate order creation. This will trigger Kafka events and subsequent processing.

πŸ§‘β€πŸ’» Author

Built with ❀️ by Aryan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages