Skip to content

pmobrien/webserver-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

Requirements to build:

To build:

From the base of the project, everything can be build simply by running:

./mvnw

What it's doing:

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.

To run the project:

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