This is a program of a web application for viewing patients information.
- Patient list: List all patients in the csv file.
- Search: Use keywords to search for patients. If multiple keywords are entered, the program will find the patients that includes all the keywords.
- Sort: In patient list and search page, the patient list can be sorted by a specified column in ascending or descending order.
- Patient info page: In patient list and search page, Click the patient ID to view the specific information about a patient.
- Statistics: View the statistics about patients.
- Java 25 (as configured in
pom.xml) - Maven 3.9+
src/main/java— Java source code (including the embedded Tomcat bootstrap inuk.ac.ucl.main.Main)src/main/webapp— Static web resources and JSPstarget— Build output (created by Maven)war-file— Packaged WAR output (created by Maven)
Build the project and produce a WAR file:
mvn clean packageThis writes the WAR to war-file/.
First compile the project, then run the main class via Maven:
mvn clean compile exec:execBy default the server starts on port 8080. Open:
http://localhost:8080
You can configure the server using system properties or environment variables:
SERVER_PORT— Port to bind (default:8080)WEBAPP_DIR— Web resources directory (default:src/main/webapp/)CLASSES_DIR— Compiled classes directory (default:target/classes)
Example (using environment variables):
SERVER_PORT=9090 mvn clean compile exec:exec