Basic Chat using UDP Punching Hole
Download from https://github.com/nopsteam/udpuchat
clj -X:run-server
clj -X:run-client :sender-id :delboni :receiver-id :bertin
# AND
clj -X:run-client :sender-id :bertin :receiver-id :delboni
# OR
clj -X:run-client :sender-id :delboni :receiver-id :bertin :server-port 7070
# AND
clj -X:run-client :sender-id :bertin :receiver-id :delboni :server-port 7070
# OR
clj -X:run-client :sender-id :delboni :receiver-id :bertin :server-port 7070 :server-ip \"127.0.0.1\"
# AND
clj -X:run-client :sender-id :bertin :receiver-id :delboni :server-port 7070 :server-ip \"127.0.0.1\"
clj -M:clojure-lsp format
clj -M:clojure-lsp clean-ns
clj -M:clojure-lsp diagnostics
Run the project's tests (they'll fail until you edit them):
$ clojure -T:build test
Run the project's CI pipeline and build an uberjar (this will fail until you edit the tests to pass):
$ clojure -T:build ci
This will produce an updated
pom.xml
file with synchronized dependencies inside theMETA-INF
directory insidetarget/classes
and the uberjar intarget
. You can update the version (and SCM tag) information in generatedpom.xml
by updatingbuild.clj
. If you don't want thepom.xml
file in your project, you can remove it. Theci
task will still generate a minimalpom.xml
as part of theuber
task, unless you removeversion
frombuild.clj
.
Run that uberjar:
$ java -jar target/udpuchat-0.1.0-SNAPSHOT.jar
If you remove version
from build.clj
, the uberjar will become target/udpuchat.jar
.
This is free and unencumbered software released into the public domain. For more information, please refer to http://unlicense.org