Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.04 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.04 KB

µservices with sanic and kubernetes demo

This is a demo/practise setup with Sanic and Kubernetes

Requirements

Running the demo

  • Start minikube: minikube start
  • Build and deploy services: ./deployall.sh
  • Make a test API call: curl http://$(minikube ip):30080/cart/1234/getTotal

Services description

API Gateway (envoy & ambassador)

Available on NodePort 30080. Provides access to other services.

Products-service

Manages products. Currently only has a static list of products. Available via the API gateway under prefix /products/

Endpoints

  • GET / list of all products
  • GET /<product_id> details of a product

Cart-service

Manages shopping carts. Currently only has a single static cart with id 1234 Available via the API gateway under prefix /cart/

Endpoints

  • GET /<cart_id> details of a cart
  • GET /<cart_id>/getTotal cart's total price