boot-clj/boot-war-example

Name: boot-war-example

Owner: boot-clj

Description: example of uberwar kind of thing

Created: 2015-04-11 19:56:01.0

Updated: 2017-01-26 03:26:54.0

Pushed: 2017-01-26 03:26:09.0

Homepage: null

Size: 4

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

boot-war-example

Example of an uberwar kind of thing.

Test with jetty runner

Build the war:

boot build-war

Download jetty-runner:

curl -o jetty-runner.jar http://central.maven.org/maven2/org/eclipse/jetty/jetty-runner/9.4.1.v20170120/jetty-runner-9.4.1.v20170120.jar

Run the war:

java -jar jetty-runner.jar target/app.war

Visit http://localhost:8080/

Develop locally

Start a REPL server and local web server:

boot dev

Visit http://localhost:8080/

You should be able to make changes to src/boot_war_example/core.clj and reload the browser and see your changes take effect.

You can also connect to the running server's JVM in a repl with boot repl -c in the project directory.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.