Technical requirements
In order to build and run the samples mentioned in this chapter, you will need a Mac or PC (Windows or Linux) with the following software:
- Java Development Kit (JDK) version 8 or higher (http://ibm.biz/GetSemeru)
- Apache Maven (https://maven.apache.org/)
- A Git client (https://git-scm.com/)
- All of the source code used in this chapter is available on GitHub at https://github.com/PacktPublishing/Practical-Cloud-Native-Java-Development-with-MicroProfile/tree/main/Chapter04.
Once you have cloned the GitHub repository, you can start the Open Liberty server that these code samples will execute in by entering the Chapter04
directory and running the following command from the command line:
mvn clean package liberty:run
You can then stop the server in the same command window by pressing Ctrl + C.
Now we've got the prerequisites taken care of, let's start by building a basic RESTful service.