Skip to content

This CLI app manages hospital visitor registrations. The app lets people register for doctor or patient visits. It uses Spring Framework and Spring Application Context for dependency injection.

Notifications You must be signed in to change notification settings

piousdev/hospital-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospital Registration CLI Application

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.

Features

  • Register a visitor for a doctor visit or patient visit.
  • Display a report of all registered visitors.

How to Use

Prerequisites

Ensure you have the following installed on your machine:

  • Java JDK 17 or later
  • Maven (prefered but not necessary)

Running the Application

  1. Clone the repository to your local machine.
git clone https://github.com/username/hospital-cli.git
  1. Navigate to the project directory.
cd hospital-cli
  1. Run the application using Maven.
mvn spring-boot:run

User Commands

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.

License

This project is MIT licensed.

Contact

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

About

This CLI app manages hospital visitor registrations. The app lets people register for doctor or patient visits. It uses Spring Framework and Spring Application Context for dependency injection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages