Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 759 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 759 Bytes

vote-app

Simple CRUD service that can be used to build demo docker images and for kubernetes demos

There are 7 endpoints

  1. /health -> Check if the application is running
  2. /register?name -> Register a candidate, take query parameter name, ex - > /register?name=sandeep
  3. /candidates -> Returns a list of registered candidated
  4. /vote/{candidate_name} -> votes for candidate_name
  5. /winner -> Returns the candidate with most votes
  6. /crash -> Crashes the application
  7. /version -> Returns the app version

This is automatically built as a docker image. To download the docker image

docker pull sandyjswl/vote-app:latest
docker run -d -p 5000:5000 sandyjswl/vote-app:latest