forked from robert-stuttaford/demo-enfocus-pubsub-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bcdc04b
Showing
15 changed files
with
36,419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.crossover-cljs | ||
.lein* | ||
classes | ||
lib | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}}}) |
Oops, something went wrong.