Skip to content

piotrb5e3/sanic-uservices-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

µ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

About

Microservices with sanic and kubernetes demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published