Playground app exploring a clojure stack for scalable real-time communication, featuring component, aleph, pulsar and DynamoDB.
- Start DynamoDB local. (e.g.
java -Djava.library.path=./DynamoDBLocal_lib -jar ..\DynamoDB\DynamoDBLocal.jar -sharedDb
). Seedev/resources/config.edn
for configuration. Datomic-free should work without further setup. lein repl
in the cloned repo.- Tail
log.txt
to view timbre logging. - Run
(in-ns 'dev)
and then(go)
to start the system. Use(reset)
or(refresh)
to reset the system/reload code. - You can try out the routes defined in
api.clj
. Note that operations are dublicated for Dynamo and Datomic. - You can test the websocket components by connecting two browser clients (e.g. use
http://www.websocket.org/echo.html
withws://localhost:4040/ws
for Immutant andws://localhost:5050/ws
for Aleph). TODO: CLJS client. - Test the event-queue by running the test code in
event-queue.clj
, e.g.(<>! :c3 :next)
.
MIT