Home | About | Documentation | Discuss

Bract requires Clojure 1.7 or higher, Java 7 or higher.

Gossamer requires Clojure 1.8 or higher.

Latest release

Module Description Clojars artifact Dependencies
bract.core Core functionality [bract/bract.core "0.6.2"] Keypin for config
bract.cli CLI support [bract/bract.cli "0.6.2-0.1.1"] tools.cli
bract.dev REPL support [bract/bract.dev "0.6.2-0.2.0"] tools.namespace
bract.ring Ring support [bract/bract.ring "0.6.2-0.2.0"]  
gossamer.core Micro Web framework [bract/gossamer.core "0.6.2-0.3.0"] Calfpath (routing), Cambium (logging)

Quick start - Bare bones application

To generate a bare bones Bract application, run the following command:

$ lein new bract myapp
$ cd myapp

Follow the generate code and README.md file for further steps.

Quick start - Web service or application

To generate a server-side web application combining several Bract modules, run the following command:

$ lein new gossamer myapp
$ cd myapp

Once you generate the application, you can use the following commands:

$ lein repl                  # load application in the REPL - run (help) to see help
$ lein ring server-headless  # start application in DEV mode
$ lein do clean, uberjar     # generate uberjar to run in standalone mode
$ java -jar target/uberjar/myapp-0.1.0-SNAPSHOT-standalone.jar -vf config/config.edn

Follow the generated code and README.md file for details.


Copyright © 2017-2021 Shantanu Kumar

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

Fork me on GitHub