/git-java-websiteskeleton

Website skeleton built with Spring Framework showcasing gradle multi-component layout as well as headless acceptance testing.

Primary LanguageJava

git-spring-websiteskeleton

Build Status

--

A website skeleton written with JDK1.8, Spring 4.2 (spring-boot and spring-framework), multi-component Gradle, thymeleaf, JUnit tests, and FluentLenium+Rest-Assured acceptance tests.

--

Installation and running

  1. brew install node
  2. Download and install JDK8
  3. git clone https://github.com/jadekler/git-spring-websiteskeleton.git. I'll assume you cloned this at ~/workspace/git-spring-websiteskeleton
  4. cd ~/workspace/git-spring-websiteskeleton
  5. ./gradlew bootRun
  6. Navigate to http://localhost:8080

NOTE: The applications/core master component is where all components with components get compiled into one final application - note the project compiles happening at applications/core/build.gradle.

Running tests

./gradlew clean test

Setting up Jenkins CI (with vagrant, virtualbox, chef)

  1. Install chef-dk
  2. Install vagrant
  3. Install virtualbox
  4. vagrant plugin install vagrant-berkshelf
  5. vagrant plugin install vagrant-omnibus
  6. vagrant plugin install vagrant-vbguest (possibly optional - install this if you see Failed to mount folders in Linux guest.)
  7. cd ~/workspace/git-spring-websiteskeleton/jenkins_ci && vagrant up --provision

Additional notes

  • The java chef downloads from oracle (sigh). If your connection is slow or spotty, it may fail on a curl command. Give it a couple of shots (vagrant provision will do it) until the curl successfully completes