dubiousdavid / dominator

Virtual-Dom in ClojureScript
73 stars 4 forks source link

How to get started? #4

Open kristianmandrup opened 8 years ago

kristianmandrup commented 8 years ago

I opened the project in Intellij IDEA with Cursive. How do I get started, running the examples and plyaing with this project?

Follow this tutorial? https://vimeo.com/103808402

Please add some Run instructions. Thanks.

kristianmandrup commented 8 years ago

I tried to follow Cursive Figwheel

(use 'figwheel-sidecar.repl-api)
(start-figwheel!) ;; <-- fetches configuration 
(cljs-repl)

And updated dependencies

(defproject wiki "0.2.0"
  :description "Virtual-Dom in ClojureScript."
  :url "https://github.com/dubiousdavid/dominator"
  :dependencies [[org.clojure/clojure "1.8.0"]
                 [org.clojure/clojurescript "1.7.228"]
                 [org.clojure/core.async "0.2.374"]
                 [cljsjs/virtual-dom "2.1.1-0"]
                 [figwheel-sidecar "0.5.0"]
                 [com.2tothe8th/dominator "0.4.0"]
                 [org.clojure/core.match "0.2.2"]]
  :node-dependencies [[source-map-support "0.2.8"]]
  :plugins [[lein-cljsbuild "1.1.0"]
            [lein-npm "0.4.0"]]
  :source-paths ["src" "script" "target/classes"]

However I tried to remove vdom.js trying to use the cljsjs module instead but I get a huge "Page not found" in a h1 when I run in figwheel. Any ideas?

dubiousdavid commented 8 years ago

Start by cloning the repo and opening up one of the example projects in the example directory. That should give you a good starting point. Can't offer any assistance with Figwheel, as I've never tried to use that. I've always just used lein-cljsbuild from the command line.