https://github.com/codingchili/chili-core-examples
Example services using the chili-core.
https://github.com/codingchili/chili-core-examples
chili-core examples
Last synced: about 1 year ago
JSON representation
Example services using the chili-core.
- Host: GitHub
- URL: https://github.com/codingchili/chili-core-examples
- Owner: codingchili
- Created: 2016-11-11T21:56:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T18:52:10.000Z (almost 7 years ago)
- Last Synced: 2025-02-12T15:51:49.618Z (over 1 year ago)
- Topics: chili-core, examples
- Language: Java
- Size: 12 MB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chili-core-examples [](https://travis-ci.org/codingchili/chili-core-examples)
An example highscore service using chili-core.
# Building
To build the jar, run
```console
./gradlew build
```
This runs the tests and creates a jar-file under `build/libs/`.
Start the jar with,
```console
$ 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,
```console
curl http://localhost:8080/api/list
```
To update the highscore list,
```console
curl http://localhost:8080/api/update -d '{"player": "robin", "score": 500}'
```
---
Find other projects that use chili-core here: [topics/chili-core](https://github.com/topics/chili-core).