Skip to content

Commit

Permalink
initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-stuttaford committed Aug 13, 2012
0 parents commit bcdc04b
Show file tree
Hide file tree
Showing 15 changed files with 36,419 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.crossover-cljs
.lein*
classes
lib
target
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Demo: Enfocus, Shoreleave's PubSub and Remotes, and cljsbuild's Crossovers

This demo shows how to use common model code (in src/depr/crossovers/*) from both the server and the ClojureScript client.

It also shows how to use `shoreleave-remote` to interact with the server (provided by Noir, in this case), and how to use `shoreleave-pubsub` along with `enfocus` and html templates to declaratively populate the view and capture user input.

Feedback most welcome.
28 changes: 28 additions & 0 deletions project.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
(defproject demo-enfocus-pubsub-remote "0.1.0-SNAPSHOT"
:description "Demo of Enfocus, PubSub and Remotes working together."
:dependencies [[org.clojure/clojure "1.4.0"]
[noir "1.3.0-beta8"]
[enfocus "1.0.0-SNAPSHOT"]
[amalloy/ring-gzip-middleware "0.1.2"]
[ring-anti-forgery "0.2.0"]
[shoreleave/shoreleave-pubsub "0.2.2-SNAPSHOT"]
[shoreleave/shoreleave-remote "0.2.2-SNAPSHOT"]
[shoreleave/shoreleave-remote-noir "0.2.2-SNAPSHOT"]]
:plugins [[lein-cljsbuild "0.2.4"]]
:main depr.server
:cljsbuild {
:crossovers [depr.crossovers]
:crossover-jar false
:builds {
:dev
{:source-path "src-cljs"
:jar true
:compiler {:output-to "resources/public/js/main-debug.js"
:optimizations :whitespace
:pretty-print true}}
:prod
{:source-path "src-cljs"
:compiler {:output-to "resources/public/js/main.js"
:optimizations :advanced
:pretty-print false
:sourcemap true}}}})
Loading

0 comments on commit bcdc04b

Please sign in to comment.