/monty-hall2016

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

Monty-Hall [WIP]

A Hoplon implementation of the Monty-Hall show door game experiment.

Dependencies

Usage

Development

  1. 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
  2. Go to http://localhost:8000 in your browser. You should see "The Monty Hall" game.

  3. If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.

Production

  1. Run the prod task. In a terminal run:
    $ boot prod
  2. The compiled files will be on the target/ directory. This will use advanced compilation and prerender the html.

Deployment

Application deployed to Heroku.

  1. Get a Heroku account and install the Heroku toolbelt
  2. Create an application in the Heroku dashboard
  3. Build a WAR file with boot make-war
  4. Follow these instructions to deploy the WAR to Heroku using the heroku-cli-deploy tool.

License

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.