Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 848 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 848 Bytes

push-demo

Datomic has an interesting feature called the Transaction Report Queue, which allows for a client (or peer) application to monitor changes to a database.

The Clojure code in this repo shows how to use the transaction report queue to monitor transactions, and push changes to a web page using websockets.

Technologies used:

  • Clojure and ClojureScript
  • Ring with Compojure
  • Datomic
  • Sente for websocket communication
  • Reagent (a ClojureScript interface for Facebook's React library) for rendering the UI

Running the Application

  1. Install Datomic
  2. lein run
  3. Open http://localhost:3000