This is a simple command-line interface (CLI) application designed for managing hospital visitor registrations. The application allows visitors to register for a visit to a doctor or to visit a patient. It's built using Spring Framework and showcases the usage of Spring Application Context for Dependency Injection.
- Register a visitor for a doctor visit or patient visit.
- Display a report of all registered visitors.
Ensure you have the following installed on your machine:
- Java JDK 17 or later
- Maven (prefered but not necessary)
- Clone the repository to your local machine.
git clone https://github.com/username/hospital-cli.git
- Navigate to the project directory.
cd hospital-cli
- Run the application using Maven.
mvn spring-boot:run
After running the application, you will be prompted to enter a command. The following commands are supported:
-
register: This command initiates the visitor registration process. You will be prompted to enter your first name, last name, and choose a doctor (or opt for patient visit).
-
report: This command displays a list of all registered visitors, including the visitor's name, purpose of visit, and the time of their registration.
-
exit: This command ends the application.
This project is MIT licensed.
If you have any questions, feel free to open an issue or contact the maintainers directly.
This is a re-upload of a class project at Becode