Skip to content

thosmos/om-next-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Om TodoMVC Example

Om is a ClojureScript UI component library over React.

Om - github.com/swannodette/om

This is a version of David Nolen's om-next-demo that uses Boot to run the server, auto-reload CLJ and CLJS files, and run a browser (B)REPL. It uses Danielsz/System to enable server-side Component reloading and boot-reload for CLJS reloading.

To run it:

boot dev

Open your browser to http://localhost:8081

To see server reloading in action, change 'todomvc.server/index to the following and reload your browser:

(defn index [req]
      {:status 200
       :headers {"Content-Type" "text/html"}
       :body "Hello auto-reloading!"}
      )

To connect to the BREPL, open a new terminal and:

boot repl -c

then

(start-repl)
(js/alert "Hello BREPL!")

About

TodoMVC with Om Next

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 97.9%
  • HTML 1.9%
  • JavaScript 0.2%