This sample displays growth chart (child's stature percentile based on age.) based on the following data:
https://www.cdc.gov/growthcharts/data/zscore/statage.csv/
I have deployed this web application on AWS Using Elastic Beanstalk and this is the link (just in case you don't have maven environment set up in your machine):
https://ornl-app-ce4dd35f9511.herokuapp.com/
This sample demonstrates:
- Implementing data visualization application using J2EE technologies
- Use of cloud development platforms
- Use of classes
- Use of thymeleaf(Java XML/XHTML/HTML5 template engine) and Bootstrap(HTML and CSS based design templates)
- Input and output operations
- Unit test with Mockito (a library that enables writing tests using the mocking approach)
- Use of Javadoc for documentation
- Use of Maven build
- Use of Git for version control
- Use of READMEs for out of source docs
Queries may be sent to the author at tkkscf at g m a i l dot com.
-
compile the project and generate target folder
mvn compile -
Tests
mvn clean install -
Cleaning
mvn clean -
Builds and packages(the resulting WAR file into the target directory-without running the unit tests during the build)
mvn package -Dmaven.test.skip=true -
Execution (triggers the download of Apache Tomcat and initializes the startup of Tomcat.)
mvn spring-boot:run
When the log shows the line containing ‘Started Application', this web application is ready to be queried via the browser at the address http://localhost:8080/
This default URL displays my daughter's height for age. Other input can be entered by the following:
http://localhost:8080/chart/{ageInMonth}/{height}/{sex}
- {sex} -> 1:boy, 2:girl
All classes are documented using Javadoc annotations.
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Spring Boot DevTools
- Spring Configuration Processor
- Spring Web
- Thymeleaf
The following guides illustrate how to use some features concretely: