Skip to content

Sample CRUD service used to build demo docker images and kubernetes deployments

Notifications You must be signed in to change notification settings

sandyjswl/vote-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sample CRUD service used to build demo docker images and kubernetes deployments

Resources

Stars

Watchers

Forks

Packages