-
Notifications
You must be signed in to change notification settings - Fork 7
Setup for Manual Testing of the Starter
amyreit edited this page Jun 7, 2023
·
1 revision
Pre-req - maven must be installed on your machine (for example - brew install maven on mac-os)
-
Run
mvn liberty:devThis will do the following:
- build the
openliberty-starter-1.0-SNAPSHOT.war - download and unzip the wlp to
start.openliberty.io/target/libertydirectory, - create the defaultServer, copy the server.xml to
start.openliberty.io/target/liberty/wlp/usr/servers/defaultServerdirectory, - copy the .war to the apps directory of the server and start the server (defaultServer)
- build the
-
Visit https://localhost:9443/api/start/info to confirm the API is healthy
-
To test the
app-name.zipgenerated usingmaven, use the query params for ex. https://localhost:9443/api/start?a=app-name&b=maven&e=9.1&g=com.demo&j=8&m=5.0 -
To test the
app-name.zipgenerated usinggradle, use the query params for ex. https://localhost:9443/api/start?a=app-name&b=gradle&e=9.1&g=com.demo&j=8&m=5.0
To test the downloaded app-name.zip
- Unzip the downloaded
app-name.zip&cdto inside theapp-namedirectory - Add the
PropertiesResource.javatosrc/main/java/com/demo/restfrom this sample - Run
gradlew libertyDevormvnw liberty:dev - Check the splash page http://localhost:9080
- Go to http://localhost:9080/openapi/ui/
- Go to http://localhost:9080/app-name/api/properties