{"id":20018799,"url":"https://github.com/codercake/library-mgt-sys","last_synced_at":"2025-10-27T16:04:53.407Z","repository":{"id":254942393,"uuid":"842978586","full_name":"codercake/library-mgt-sys","owner":"codercake","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-09T16:35:18.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T14:45:51.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codercake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T14:16:03.000Z","updated_at":"2024-11-09T14:39:34.000Z","dependencies_parsed_at":"2024-11-13T08:40:49.566Z","dependency_job_id":null,"html_url":"https://github.com/codercake/library-mgt-sys","commit_stats":null,"previous_names":["codercake/library-management-system","codercake/library-mgt-sys"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codercake/library-mgt-sys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codercake%2Flibrary-mgt-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codercake%2Flibrary-mgt-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codercake%2Flibrary-mgt-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codercake%2Flibrary-mgt-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codercake","download_url":"https://codeload.github.com/codercake/library-mgt-sys/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codercake%2Flibrary-mgt-sys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281295853,"owners_count":26476765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T08:24:22.503Z","updated_at":"2025-10-27T16:04:53.392Z","avatar_url":"https://github.com/codercake.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Management System\r\n\r\nThis Java-based project enables users to manage books and members in a library. The system supports adding books, registering members, borrowing and returning books, and viewing the current library inventory. The project is structured into multiple packages (`model`, `service`, and `main`) to maintain a clean, modular design.\r\n\r\n## Features\r\n\r\n- **Book Management**: Add, view, borrow, and return books.\r\n- **Member Management**: Register new members, view all members, and track borrowed books.\r\n- **Borrow/Return System**: Each member can borrow up to 3 books, and they can return borrowed books.\r\n- **Inventory Management**: View the current library inventory, including all books and their status (available or not).\r\n\r\n## Packages and Classes\r\n\r\n### 1. **Model Package**\r\n- **`Book`**:\r\n  - Stores information about a book (title, author, bookID).\r\n  - Allows borrowing and returning books by members using `borrowBook()` and `returnBook()` methods.\r\n- **`User`**:\r\n  - Represents a library user with a name and user ID.\r\n- **`Librarian`**:\r\n  - Extends `User` class to represent a librarian.\r\n  - Manages book-related operations.\r\n- **`Member`**:\r\n  - Extends `User` class to represent a library member.\r\n  - Tracks borrowed books and provides methods to borrow and return books.\r\n\r\n### 2. **Service Package**\r\n- **`Library`**:\r\n  - Manages a collection of books using `ArrayList`.\r\n  - Provides functionality to add new books (`addBook()`) and view available books (`displayBooks()`).\r\n  - Allows searching for books by ID and removing books.\r\n  \r\n### 3. **Main Package**\r\n- **`Main`**:\r\n  - The main class responsible for running the program.\r\n  - Displays a menu to perform operations such as adding books, registering members, borrowing/returning books, and quitting.\r\n\r\n## Key Java Concepts Used\r\n\r\n### 1. **`Scanner`**:\r\n   - Used to read user input for various operations like adding books, registering members, borrowing, and returning books. \r\n\r\n### 2. **`ArrayList`**:\r\n   - Used to dynamically store books and members in the `Library` class.\r\n\r\n## Running the Project\r\n\r\n1. **Clone the Repository**: Clone the repository to your local machine.\r\n2. **Navigate to the Project Directory**: Open your terminal or command prompt and navigate to the project directory.\r\n3. **Compile the Code**: Use your IDE (like Eclipse or IntelliJ IDEA) or command line to compile the code.\r\n4. **Run the Program**: Compile and run the `Main.java` file from the `main` package.\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodercake%2Flibrary-mgt-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodercake%2Flibrary-mgt-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodercake%2Flibrary-mgt-sys/lists"}