Skip to content

Latest commit

 

History

History
70 lines (57 loc) · 1.76 KB

File metadata and controls

70 lines (57 loc) · 1.76 KB

Entirely client side applications with shared state!

Motivation

Motivation

I wanted to play games with others.

Technology

Technology

ClojureScript

  • Reagent
  • lein-figwheel

Firebase

Reagent

lein-figwheel

  • “A powerful API to store and sync data in real time.”
  • a NoSQL database hosted in the cloud.
  • Persistent connection between client and server.
  • Can host the html/javascript/css entirely using Firebase.
  • Free level is enough to at least get started with the service.
  • 50 concurrent connections, 5 GB transfer, 100 MB storage

Firebase: Data

Firebase: Saving Data

Operationresult
setwrite to specific path
updateUpdate some keys
pushAdd to a list of data
transactionsort of like swap!

Firebase: Retrieving Data

  • Subscribe to events
    • child_changed
    • child_added
    • child_removed
    • child_moved
    • value
  • Can also just get data once.
  • cljs library that exposes some of the functionality.
  • I use a minimal amount of it.

Other things mentioned