An app that demonstrates server-sent events with http-kit.
If you're a beginner to Clojure and don't have a favorite setup yet, I recommend using Visual Studio Code in combination with the Calva extension.
Once you've installed Visual Studio Code and Calva, connect Calva to the project and start development.
A convenient way to get started is opening src/ultra-chat/core.clj
and evaluating that file by pressing ctrl+alt+c enter
.
Afterwards, put you cursor somewhere inside an expression and press alt+enter
to evaluate it.
Run clojure -X:run
to start the app.
Obviously, this requires Clojure.
Run clojure -T:build clean && clojure -T:build uber
to create an uberjar.
Run java -jar target/ultra-chat-<version>-standalone.jar
to start the application.
Starting the application like this doesn't require Clojure, only Java.