Skip to content

Instantly share code, notes, and snippets.

@pithyless
Created December 16, 2014 12:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pithyless/0c37ccce17ce6bf99abf to your computer and use it in GitHub Desktop.
Save pithyless/0c37ccce17ce6bf99abf to your computer and use it in GitHub Desktop.
Reagent quickstart
1. Get lein
lein - http://leiningen.org/
2. `lein new reagent <awesome-project>`
3. Some changes to project.clj from last night's talk:
:dependencies [[org.clojure/clojure "1.7.0-alpha4"]
[org.clojure/clojurescript "0.0-2371"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[reagent "0.4.3"]
[cljs-ajax "0.3.3"]]
4. Editor setup
ViM
https://github.com/tpope/vim-fireplace
https://github.com/guns/vim-clojure-static
Emacs
https://github.com/clojure-emacs/cider-nrepl
Otherwise
http://lighttable.com/
5. Reagent vs Om
http://diogo149.github.io/2014/10/19/om-no/
6. Run it all!
`lein ring server`
`lein repl`
(start-figwheel)
(browser-repl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment