/cljs-ssr-hello

Simple isomorphic CLJS app running on NodeJS using OM/Reagent.

Primary LanguageJavaScriptEclipse Public License 1.0EPL-1.0

cljs-ssr-hello

Simple isomorphic CLJS app running on NodeJS. This simple app shows how to use cljs-ssr-node with either OM or Reagent.

To use OM, simply change this line from:

                  :renderer reagent-renderer

to:

                  :renderer om-renderer

and then change this line from:

    (render-reagent-home app-state service router)))

to

    (render-om-home app-state service router)))

Running and deploying

To run:

git clone https://github.com/rukor/cljs-ssr-hello.git
cd cljs-ssr-hello
lein build
npm install
node resources/index.js

To deploy to heroku (or similar PaaS), first generate the package.json as follows:

lein with-profile prod build
npm install 

Then follow heroku's instructions for a typical nodejs app

Deploy

License

EPL