Skip to content

odaceo/lab-hello-world-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab :: Hello World :: Spring Boot Application

License Build Status

Description

A simple web application with Spring Boot.

Prerequisites

As craftsmen we love crafting software on a clean workbench.

We believe that a clean workbench helps us focus on what really matters: handcrafting every design and code with great care.

Vagrant helps us create such a workbench and install the prerequisites, and nothing more.

As a benefit, we keep our workbench as clean as possible over time.

Vagrant must be installed on your computer to mount the workbench for this project.

Open a Terminal and run the following commands:

vagrant up
vagrant ssh
cd /vagrant

Building the application

The build command creates a standalone JAR file.

mvn clean package

Running the application

To launch the application use the following command:

java -jar target/hello-world-spring-boot-0.6.2-SNAPSHOT.jar

To run the service use the following command:

curl http://localhost:8080/greeting?name=Odaceo

To check the application's health use the following command:

curl http://localhost:9090/health

Releasing the application

Step-by-step instructions for releasing the application:

  1. Start a new release

     git flow release start 0.6.2
    
  2. Bump the version number

     mvn versions:set -DnewVersion=0.6.2 
    
  3. Update the bintray.json with the new version

  4. Update the documentation

  5. Commit pending changes

     git commit -am "Bump the version number"
    
  6. Finish the release

     git flow release finish -m "Release 0.6.2" 0.6.2
    
  7. Bump the version number of the develop branch

     mvn versions:set -DnewVersion=0.7.0-SNAPSHOT 
    
  8. Commit pending changes

     git commit -am "Bump the version number"
    

Make sure all artifacts have been successfully uploaded to Bintray.

Reporting Issues

Issues can be reported at https://github.com/odaceo/lab-hello-world-spring-boot/issues

Source code

The source code is available at https://github.com/odaceo/lab-hello-world-spring-boot

License

All the source code is distributed under ASL 2.0.

Copyright

© 2015 Odaceo. All rights reserved.

About

A simple web application with Spring Boot.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published