A minimal demo web app for the Bract framework. The problem statement this app solves is as follows:
- Randomly pick a roll of dice on every web request
- Render the rolled dice in a visual text form
- Use Ring for handling HTTP requests
You can build the app locally and run it as follows:
$ lein do clean, uberjar
$ java -jar target/uberjar/demo.diceroll-0.6.2-standalone.jar -vf config/config.edn
Alternatively, you may want to run it as follows in development:
$ lein do clean, ring server-headless
In your web browser you can visit the following URLs:
Run lein do clean, repl
to launch the REPL:
bract.dev.repl=> (help) ; shows the help screen
Run tests using lein do clean, test
command.
Copyright © 2017-2021 Shantanu Kumar
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.