An example highscore service using chili-core.
To build the jar, run
./gradlew buildThis runs the tests and creates a jar-file under build/libs/.
Start the jar with,
$ java -jar chili-core-samples.jar
STARTUP [14:48:53.861] service.start [SystemContext ] name=com.codingchili.highscore.Service
STARTUP [14:48:54.279] listener.start [HighscoreContext] handler=HighscoreHandler@api port :8080To retrieve the current highscore listing,
curl http://localhost:8080/api/listTo update the highscore list,
curl http://localhost:8080/api/update -d '{"player": "robin", "score": 500}'Find other projects that use chili-core here: topics/chili-core.