This is the validation-experiment project as blogged about at:
Each part has a corresponding branch in this repository: part1, part2, part3 and part4. The master branch contains the code as generated by the Leiningen reagent template.
To start the Figwheel compiler, navigate to the project folder and run the following command in the terminal:
Figwheel will automatically push cljs changes to the browser. The server will be available at http://localhost:3449 once Figwheel starts up.
Figwheel also starts
nREPL using the value of the
:nrepl-port in the
config found in
project.clj. By default the port is set to
The figwheel server can have unexpected behaviors in some situations such as when using websockets. In this case it's recommended to run a standalone instance of a web server as follows:
lein do clean, run
The application will now be available at http://localhost:3000.
Optional development tools
Start the browser REPL:
$ lein repl
The Jetty server can be started by running:
and stopped by running:
Running the tests
To run cljs.test tests, please use
For installation instructions of PhantomJS, please see this.
Building for release
lein do clean, uberjar
Deploying to Heroku
Optionally, test that your application runs locally with foreman by running.
Now, you can initialize your git repo and commit your application.
git init git add . git commit -m "init"
create your app on Heroku
optionally, create a database for the application
heroku addons:add heroku-postgresql
The connection settings can be found at your Heroku dashboard under the add-ons for the app.
deploy the application
git push heroku master
Your application should now be deployed to Heroku! For further instructions see the official documentation.