Ensure having JDK 8 installed.
Get it here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Then, e.g.:
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
To build & run via command line shell:
./gradlew clean build && java -server -jar build/libs/boot-rest.jar
Or simply run Application.main()
via IDEA (14.1+ with latest Lombok plugin recommended).
Also (pre-packaged):
bin/run.sh
An endpoint to play with:
curl -i localhost:8888/api/messages
SPA frontend UI resides at root URL, BTW.
Admin endpoints, powered by Spring Boot, at:
/manage/*
(auth-protected)
REST API docs, powered by Swagger (UI), at:
/api-docs/index.html
Generated ones, via Asciidoctor, at:
/docs/index.html
Note: this thing is ready to be deployed on Heroku (and verified to run packaged as WAR in Tomcat 8 as ROOT
context).
FYI: using Spring Data Elasticsearch as embedded data source provider for fun & DRYness.
PS: Bootstrap/Angular SPA is developed & built with the help of Yeoman, Gulp, and JSPM/ES6...
So, you'll need to have Node.js/NPM as well as JSPM and Gulp CLI (globally) installed.