A Hoplon project with Castra designed to...well, that part is up to you.
- java 1.7+
- boot
-
Start the
dev
task. In a terminal run:$ boot dev
This will give you a Hoplon development setup with:
- auto compilation on file changes
- audible warning for compilation success or failures
- auto reload the html page on changes
- Clojurescript REPL
-
Go to http://localhost:8000 in your browser. You should see "Hello, Hoplon and Castra!" with random numbers that are generated on the server and transmited to the client. But you should change that to what you want.
-
If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.
.### Production
- Run the
prod
task. In a terminal run:$ boot prod
- The compiled files will be on the
target/
directory. This will use advanced compilation and prerender the html.
You can easily deploy this application for free to Heroku.
- Get a Heroku account and install the Heroku toolbelt
- Create an application in the Heroku dashboard
- Build a WAR file with
boot make-war
- Follow these instructions to deploy the WAR to Heroku using the
heroku
tool.
Copyright © 2015, Your Name Goes Here