| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A minimal Maven-based Java web application used for COMP0004. This project is aimed at junior developers who are learning how a basic Java web app is structured and how to run it locally.
Check versions:
java -version
mvn -version. ├── pom.xml # Maven build config ├── src/ │ └── main/ │ ├── java/ # Java source code │ └── webapp/ # Web resources (WEB-INF, web.xml, etc.) └── target/ # Build output (generated)
From the project root:
mvn clean packageThis will:
The easiest way to run this project is through Maven using the embedded Tomcat setup. This is the preferred method because Maven will download and manage the required dependencies automatically.
From the project root:
mvn clean package
mvn exec:execThen open:
http://localhost:8080/
Tip: Keep the terminal running while the server is up. Stop it with Ctrl+C.
This project packages a WAR, so you run it in a servlet container such as Tomcat.
mvn clean packagecp target/*.war /path/to/tomcat/webapps//path/to/tomcat/bin/startup.shhttp://localhost:8080/
Tip: Tomcat will deploy the WAR automatically when it appears in webapps/.
If you’re new to Java web apps, focus on the build/run cycle first: edit → mvn package → deploy WAR → refresh browser.
| Back | FazBrowse Home | New Git URL |