Skip to content

codingchili/chili-core-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chili-core-examples Build Status

An example highscore service using chili-core.

Building

To build the jar, run

./gradlew build

This 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 :8080

Testing

To retrieve the current highscore listing,

curl http://localhost:8080/api/list

To 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.

About

Example services using the chili-core.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages