This project is intended to test your Java skills with focus on building Web APIs Refer to the email sent to you on how to complete this assigment
This is project is built using Maven. There are many ways to install Maven. The easiest way is to download it, unzip the archive, add it to the system path and run it.
If you are running on a mac: Install Maven on a Mac
brew update
brew search maven
brew info maven
brew install maven
brew cleanup
If you are running on Ubuntu:
sudo apt update
sudo apt install maven
mvn -version
If you are running on Windows Download Maven
unzip apache-maven-3.6.1-bin.zip
# Add Maven to system PATH
# Make sure Java is installed in your system
echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_172
# Test Maven
mvn -version
- From command line, go to the root of the project
mvn clean install
- this also runs all the unit testsmvn spring-boot:run
- this invokes the project and binds the server to port 8080
- From the command line
curl localhost:8080
- From a browser http://localhost:8080
- From Postman
GET http://localhost:8080
- This project uses Lombok to generate boilerplate getters/setters
- To install Lombok
- We strongly recommend IntelliJ - community eddition is free
To simplify data access, this project uses an embedded database H2
- Once started, H2 UI can be accessed as follows
- URL http://localhost:8080/h2-console
- User name: measurabl
- Password: measurabl
- JDBC URL: jdbc:h2:mem:measurabl
This project has Swagger enabled. This means all endpoints in this project are OpenAPI documented
- HTML formatted documentation -> http://localhost:8080/swagger-ui.html#/
- Machine readable API http://localhost:8080/v2/api-docs