www.msaez.io/#/courses/cna-full/25a51e80-640f-11ef-b6b7-6ff918412057/design-event
cd kafka
docker-compose up
- Check the Kafka messages:
cd infra
docker-compose exec -it kafka /bin/bash
cd /bin
./kafka-console-consumer --bootstrap-server localhost:9092 --topic
See the README.md files inside the each microservices directory:
- order
- support
- dashboard
cd gateway
mvn spring-boot:run
- order
http :8088/orders id="id" customerId="customerId" customerName="customerName" productId="productId" qty="qty" address="address" status="status"
- support
http :8088/deliveries id="id" orderId="orderId" address="Address" productId="productId" qty="qty" status="status"
http :8088/inventories id="id" name="name" stock="stock"
- dashboard
cd frontend
npm i
npm run serve
Open a browser to localhost:8088
- 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