demo-springboot/bmi
stef d324ffd7fc first commit 2023-12-17 14:44:22 +01:00
..
.mvn/wrapper first commit 2023-12-17 14:44:22 +01:00
src first commit 2023-12-17 14:44:22 +01:00
styles first commit 2023-12-17 14:44:22 +01:00
.gitignore first commit 2023-12-17 14:44:22 +01:00
Dockerfile first commit 2023-12-17 14:44:22 +01:00
README.md first commit 2023-12-17 14:44:22 +01:00
mvnw first commit 2023-12-17 14:44:22 +01:00
mvnw.cmd first commit 2023-12-17 14:44:22 +01:00
package.json first commit 2023-12-17 14:44:22 +01:00
pom.xml first commit 2023-12-17 14:44:22 +01:00
tailwind.config.js first commit 2023-12-17 14:44:22 +01:00
yarn.lock first commit 2023-12-17 14:44:22 +01:00

README.md

Body Mass Index Calculator

This is a Web application to calculate you body mass index built with Spring Boot

Prerequisites

  • JDK 8+
  • Apache Maven 3.5+
  • Node.js 12+

Tech stack

  • Spring Boot 2.6.7
  • Thymeleaf 2.6.7
  • Tailwind CSS 3.0.24

Setup

Install Maven dependencies

mvn install

Install the Node dependencies for Tailwind CSS

yarn install #or npm install

Run Tailwind CSS watcher to generate the CSS required by the HTML page

yarn css

Run the application

mvn spring-boot:run

Navigate to the URL http://localhost:8000 and enjoy

Run the tests

mvn test

Packaging

Package the application to a .jar file

mvn clean package

Run the generated .jar file in the target folder

java -jar target/bmi-1.0.jar