Skip to content

frahmadani/ecommerce-be-main

Repository files navigation

Overview

E-Commerce NodeJS MS adalah aplikasi berbasis microservices untuk mensimulasikan proses belanja di sebuah e-commerce yang terdiri dari 4 service:

  1. User Service
  2. Product Service
  3. Order Service
  4. Transaction Service

How to run individual services

  1. Clone repo
  2. Copy .env.dev ke .env
  3. Ensure MongoDB & Kafka is available in the system, and update .env file accordingly
  4. Run npm run dev

How to run overall project

  1. Install Docker Engine
  2. HOST_IP is needed to run Kafka properly. Provide HOST_IP in ENV file, then run docker-compose:
docker-compose build && docker-compose up

or get current HOST_IP directly from command:

export HOST_IP=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1)
docker-compose build && docker-compose up

API Documentation

API Documentation is provided with Postman Click here to access

Event Flow Diagram:

Flow diagram of event between services can be viewed here: Diagram Flow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors