The Digital Library Book Management System is a Java Console Application that allows users to manage a collection of books. It provides functionalities to add, view, search, update, and delete books using a simple command-line interface.
✅ Add a Book – Ensures unique book IDs and mandatory fields.
✅ View All Books – Lists all books in the library.
✅ Search for a Book – Allows searching by book ID or title.
✅ Update Book Details – Modify title, author, and availability status.
✅ Delete a Book – Removes a book from the system.
- Java SE 11+
- JUnit 5 (for unit testing)
- Maven (for build & dependency management)
DigitalLibraryBookManagementSystem/
│── src/
│ ├── main/
│ │ ├── LibraryApplication.java # Main application entry point (console-based)
│ ├── models/
│ │ ├── Book.java # Book entity model
│ ├── services/
│ │ ├── LibraryService.java # Core business logic for book management
│ ├── test/
│ │ ├── LibraryServiceTest.java # JUnit test cases
│── module-info.java # Java module system configuration
Ensure you have the following installed:
- Java JDK 11+ (Download JDK)
git clone https://github.com/yogananda222/DigitalLibraryBookManagementSystem.git
cd DigitalLibraryBookManagementSystemmvn clean install-
Compile the Java files
javac -d out src/main/*.java src/models/*.java src/services/*.java
-
Run the application
java -cp out main.LibraryApplication
mvn exec:java -Dexec.mainClass="main.LibraryApplication"To execute unit tests, run the following command:
mvn test- Yogananda Naidu – Developer