Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get started? #4

Open
kristianmandrup opened this issue Feb 26, 2016 · 2 comments
Open

How to get started? #4

kristianmandrup opened this issue Feb 26, 2016 · 2 comments

Comments

@kristianmandrup
Copy link

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants