GithubHelp home page GithubHelp logo

kanedafromparis / cheers Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 82 KB

This is a sample application used for my kuberntest introduction course

License: Apache License 2.0

Java 53.32% HTML 30.36% CSS 2.56% JavaScript 13.76%

cheers's Introduction

cheers

This is a sample application used for my kubernetes introduction courses

Dev, Builds and Run

run locally

in order to make it run locally

$mvn clean package vertx:run

run in docker

mvn clean package docker:build docker:start docker:watch

docker images released

https://hub.docker.com/r/kanedafromparis/cheers/

Play with probs

You can use /liveness and /readiness to check kubernetes probs

You can set CHEER_SLOW_READINESS or CHEER_SLOW_LIVENESS to any positive number

Curl & jq Tips

to get cheers

curl http://127.0.0.1:8080/api/1.0/cheers

to get a specific cheer

curl http://127.0.0.1:8080/api/1.0/cheers/ | jq .[1]

or prefer

curl http://127.0.0.1:8080/api/1.0/cheers/1 

to get a random cheer

curl http://127.0.0.1:8080/api/1.0/randomcheers

for uploading cheer

curl -H "Content-Type: application/json" -X POST -d '{"intro":"you enlight my day","cause":"you look gorgeous"}' http://127.0.0.1:8080/api/1.0/cheers

for deleting cheer

curl -i -X DELETE http://127.0.0.1:8080/api/1.0/cheers/6

-i is for you to have feedback ;-) HTTP/1.1 204 No Content means that the resource does not exist

for FQDN query

curl -i -H "Content-Type: application/json" -X POST -d '{"fqdn":"google.com"}' http://127.0.0.1:8080/api/1.0/info/dns

for Retrieving System and java info query

curl -s http://127.0.0.1:8080/api/1.0/infos/env

cheers's People

Contributors

kanedafromparis avatar snyk-bot avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.