The project is a standard Maven project. To run it from the command line,
type mvnw
(Windows), or ./mvnw
(Mac & Linux), then open
http://localhost:8080 in your browser.
To create a production build, call mvnw clean package -Pproduction
(Windows),
or ./mvnw clean package -Pproduction
(Mac & Linux).
This will build a JAR file with all the dependencies and front-end resources,
ready to be deployed. The file can be found in the target
folder after the build completes.
Once the JAR file is built, you can run it using
java -jar target/deyakwebapp-1.0-SNAPSHOT.jar
To build the Dockerized version of the project, run
mvn clean package -Pproduction
docker build . -t deyakwebapp:latest
Once the Docker image is correctly built, you can test it locally using
docker run -p 8080:8080 deyakwebapp:latest