Sign inSign up

sumit0058/votethegame

By sumit0058

•Updated over 3 years ago

A voting application based on microservices as architecture 🚀

Image
0

187

sumit0058/votethegame repository overview

⁠VoteTheGame

Cricket-vs-Soccer

It is a voting application which is based on microservices as architecture.

voteapp-vote

⁠About this app

The working of microservices are as follows

  • The main application (Vote) is based on Flask connected to a Redis database
  • The Redis database is connected to a Worker service for processing the vote
  • The Worker service is connected to a Postgresql database for storing the vote result
  • The vote results are being showcased using the result app

voteapp-result

⁠Instructions to run this project using Docker Compose
docker-compose up -d

application containers

Now access the Vote application using "localhost":5000 or "ip-of-machine":5000 🚀
And access the Result application using "localhost":5001 or "ip-of-machine":5001 🚀

OR

docker-compose -f dockerhub-image-compose.yml up -d

application containers-1

Now access the Vote application using "localhost":5000 or "ip-of-machine":5000 🚀
And access the Result application using "localhost":5001 or "ip-of-machine":5001 🚀

voteapp-result-1

⁠Instructions to run this project in local Kubernetes minikube
kubectl apply -f kubernetes/
kubectl port-forward service/voteapp 5000
kubectl port-forward service/resultapp 5001

kubernetes-status

Now access the Vote application using "localhost":5000 or "ip-of-machine":5000 🚀
And access the Result application using "localhost":5001 or "ip-of-machine":5001 🚀

Tag summary

Content type

Image

Digest

sha256:f8bcd7fca…

Size

57.4 MB

Last updated

over 3 years ago

docker pull sumit0058/votethegame:resultapp