- CORE: Contains the bussines logic, use cases, domains.
- FRAMEWORK: Any java framework, in this case Spring Boot.
- Java 14+
- Maven 3+
- Spring boot 2.5.6
- H2 database
- Beam Validations API
- Spring Fox Swagger UI
- JUnit 5
- Spring Data JPA
- Clone the repo
- From command line run:
mvn clean install
- From command line run:
mvn spring-boot:run
- Or import in your IDE and run from it.
if you have errors with new versions of IntelliJ or Java, try add VM options:
--enable-preview
- Open in your browse: http://localhost:8080/swagger-ui.html
- Use the '/users' endpoint to create a new user, the application will save it in the H2 memory database.
- Use the '/bmi' endpoint to calculate the BMI for a user.