git-java-websiteskeleton
git-java-websiteskeleton copied to clipboard
Website skeleton built with Spring Framework showcasing gradle multi-component layout as well as headless acceptance testing.
git-spring-websiteskeleton
--
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
brew install node- Download and install JDK8
git clone https://github.com/jadekler/git-spring-websiteskeleton.git. I'll assume you cloned this at~/workspace/git-spring-websiteskeletoncd ~/workspace/git-spring-websiteskeleton./gradlew bootRun- 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)
- Install chef-dk
- Install vagrant
- Install virtualbox
- Note: if you get an error about
vboxsf, download Virtualbox 4.3.20 here
- Note: if you get an error about
vagrant plugin install vagrant-berkshelfvagrant plugin install vagrant-omnibusvagrant plugin install vagrant-vbguest(possibly optional - install this if you seeFailed to mount folders in Linux guest.)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 provisionwill do it) until the curl successfully completes