A simple project that, when built, produces a jar containing a servlet (Jetty) that hosts a web page and a REST API, as well as an embedded database (Neo4j).
From the base of the project, everything can be build simply by running:
./mvnw
The project will first compile the React project in the client/
directory and place the output inside the proper directory in the server/
project. The server/
Java project is then built and everything is bundled into the server/target/webserver.jar
file.
From the base of the project, run:
java -jar server/target/webserver.jar
For easy copy/paste; to build and run in one step:
./mvnw && java -jar server/target/webserver.jar