An example of using ClojureScript to make a node.js app.
- lein
- node.js
Run the following from the base project directory:
npm install
lein cljsbuild once
This will create the target/js/myexample.js file. This is what you can run with node.js:
node target/js/myexample.js
And there you go, a "Hello World!" that's over 12,000 lines of JavaScript!
Create a Heroku app
heroku create
heroku buildpacks:add heroku/nodejs
heroku buildpacks:add heroku/clojure
git push heroku master