Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1023 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 1023 Bytes

rt-comm

Playground app exploring a clojure stack for scalable real-time communication, featuring component, aleph, pulsar and DynamoDB.

Usage

  1. Start DynamoDB local. (e.g. java -Djava.library.path=./DynamoDBLocal_lib -jar ..\DynamoDB\DynamoDBLocal.jar -sharedDb). See dev/resources/config.edn for configuration. Datomic-free should work without further setup.
  2. lein repl in the cloned repo.
  3. Tail log.txt to view timbre logging.
  4. Run (in-ns 'dev) and then (go) to start the system. Use (reset) or (refresh) to reset the system/reload code.
  5. You can try out the routes defined in api.clj. Note that operations are dublicated for Dynamo and Datomic.
  6. You can test the websocket components by connecting two browser clients (e.g. use http://www.websocket.org/echo.html with ws://localhost:4040/ws for Immutant and ws://localhost:5050/wsfor Aleph). TODO: CLJS client.
  7. Test the event-queue by running the test code in event-queue.clj, e.g. (<>! :c3 :next).

Licence

MIT