These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need:
- Wildfly application server
- Apache Maven
- Java 11 (Azul 11.0.8)
- Docker (optionally)
In the project directory, run
mvn clean package
to create the deployable war-file.
- Option 1: Deploy the war to WildFly. No further configuration should be necessary.
- Option 2: Use the Dockerfile to build and run a container image:
docker build . -t wildfly-kickstart docker run -p 8080:8080 wildfly-kickstart
Once the server is running, try to access the following endpoints:
- Hello-world endpoint:
http://localhost:8080/wildfly-kickstart-1.0-SNAPSHOT/rest/hello/world
- More realistic endpoints:
http://localhost:8080/wildfly-kickstart-1.0-SNAPSHOT/rest/sell/allsalesmen
This should give an empty response. If the other endpoints defined in SalesmanViewFacade are used, it is possible to get a non-empty response from this endpoint.
Feel free to raise issues for this template if you have suggestions/problems.
This project is licensed under the Apache License - see the LICENSE file for details.