uEngine-Solutions / shop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Model

www.msaez.io/#/storming/983ce8d0-ac34-8d5f-b24a-f035393c5fb3

Before Running Services

Make sure there is a Kafka server running

cd kafka
docker-compose up
  • Check the Kafka messages:
cd kafka
docker-compose exec -it kafka /bin/bash
cd /bin
./kafka-console-consumer --bootstrap-server localhost:9092 --topic

Run the backend micro-services

See the README.md files inside the each microservices directory:

  • product-info
  • sales-and-marketing
  • expert-advice
  • customer-service

Run API Gateway (Spring Gateway)

cd gateway
mvn spring-boot:run

Test by API

  • product-info
 http :8088/products name="name" size="size" detailedImages="detailedImages" returnAndExchangePolicy="returnAndExchangePolicy" 
  • sales-and-marketing
 http :8088/sales productName="productName" quantity="quantity" customerName="customerName" address="address" email="email" phone="phone" 
  • expert-advice
 http :8088/experts name="name" fashionAdvice="fashionAdvice" productAdvice="productAdvice" 
  • customer-service
 http :8088/customerServices customerName="customerName" inquiry="inquiry" 

Run the frontend

cd frontend
npm i
npm run serve

Test by UI

Open a browser to localhost:8088

Required Utilities

  • httpie (alternative for curl / POSTMAN) and network utils
sudo apt-get update
sudo apt-get install net-tools
sudo apt install iputils-ping
pip install httpie
  • kubernetes utilities (kubectl)
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
  • aws cli (aws)
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
  • eksctl
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin

About


Languages

Language:Vue 77.5%Language:Java 18.1%Language:JavaScript 2.5%Language:Dockerfile 0.9%Language:Shell 0.4%Language:HTML 0.4%Language:Gherkin 0.0%