Skip to content

fabiojose/clojure-ex

Repository files navigation

Build Status codecov

userin

A Clojure APP to read json entries from stdin until receive an empty line.

Entries like that:

{ "account": { "activeCard": true, "availableLimit": 100 } }
{ "transaction": { "merchant": "Burger King", "amount": 20, "time": "2019-02-13T10:00:00.000Z" } }
{ "transaction": { "merchant": "Habbib's", "amount": 80, "time": "2019-02-13T11:00:00.000Z" } }

Building & Run

Using Docker

  • Install Docker 18+

Building a uberjar

./docker-build.sh

Building a native executable

./docker-build-native.sh

To run

./docker-run.sh

Using Leiningen

  • Install Java 1.8+
  • Install Leiningen 2.9+

Builing a uberjar

lein do clean, uberjar

To run

java -jar target/app.jar < input.json

Or, run using Leiningen

lein run < input.json

License

Apache License Version 2.0

About

Example with Clojure, Docker and Graalvm

Resources

License

Stars

Watchers

Forks

Releases

No releases published