{"id":18573459,"url":"https://github.com/almax-git/ebooklibrary.v3","last_synced_at":"2025-05-15T23:30:24.723Z","repository":{"id":259909552,"uuid":"879798377","full_name":"ALmax-git/EbookLibrary.v3","owner":"ALmax-git","description":"EbookLibrary.v3","archived":false,"fork":false,"pushed_at":"2024-10-29T16:51:00.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T14:44:55.934Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALmax-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-28T15:09:00.000Z","updated_at":"2024-11-03T10:37:43.000Z","dependencies_parsed_at":"2024-10-28T17:37:35.807Z","dependency_job_id":"799fa61c-0942-4748-b4ee-3549b025031e","html_url":"https://github.com/ALmax-git/EbookLibrary.v3","commit_stats":null,"previous_names":["almax-git/ebooklibrary.v3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALmax-git%2FEbookLibrary.v3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALmax-git%2FEbookLibrary.v3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALmax-git%2FEbookLibrary.v3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALmax-git%2FEbookLibrary.v3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALmax-git","download_url":"https://codeload.github.com/ALmax-git/EbookLibrary.v3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442038,"owners_count":22071857,"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","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-06T23:09:35.071Z","updated_at":"2025-05-15T23:30:22.649Z","avatar_url":"https://github.com/ALmax-git.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ebook Library CLI\n\nA command-line-based Ebook Library application implemented in Java. This application allows users to add, view, update, and delete books from an e-library database, with basic CRUD operations supported.\n\n## Features\n\n- **Add Book**: Add new books to the library.\n- **View Books**: View a list of all books in the library.\n- **Update Book**: Update details of existing books.\n- **Delete Book**: Remove books from the library.\n- **Error Handling**: Error prompts for failed operations, such as loading a book.\n\n## Getting Started\n\nThese instructions will guide you on how to set up, compile, and run the Ebook Library CLI application.\n\n### Prerequisites\n\n- Java Development Kit (JDK) 8 or later\n- XAMPP (for database support in Version 2)\n\n### Installation\n\n1. Clone or download this repository to your local machine.\n   ```bash\n   git clone [EbookLibrary](https://github.com/ALmax-git/EbookLibrary.v3)\n   ```\n\n2. Navigate to the project directory:\n   ```bash\n   cd /opt/lampp/htdocs/EbookLibrary.v3\n   ```\n\n### Usage\n\n1. **Compile the Application**:\n   Ensure you are in the directory containing `Main.java`:\n   ```bash\n   javac Main.java\n   ```\n\n2. **Run the Application**:\n   ```bash\n   java Main\n   ```\n\n3. Follow the on-screen prompts to interact with the Ebook Library application. Options will include adding, viewing, updating, and deleting books.\n\n### Database Setup (Version 2)\n\nFor the database-connected version:\n\n1. Start XAMPP and make sure MySQL is running.\n2. Create a database named `ebook_library`.\n3. Inside the database, create a table `books` with the following structure:\n\n   ```sql\n   CREATE TABLE books (\n       id INT AUTO_INCREMENT PRIMARY KEY,\n       title VARCHAR(255) NOT NULL,\n       author VARCHAR(255) NOT NULL,\n       year INT,\n       genre VARCHAR(100)\n   );\n   ```\n\n4. Update the database connection information in `Main.java` if needed.\n\n### Error Handling\n\nIf an operation fails (e.g., failing to load books), an error message will be displayed in the terminal.\n\n## Example\n\nSample output on running the application:\n\n```\nWelcome to the Ebook Library CLI!\n\n1. Add Book\n2. View Books\n3. Update Book\n4. Delete Book\n5. Exit\n\nEnter your choice: \n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmax-git%2Febooklibrary.v3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmax-git%2Febooklibrary.v3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmax-git%2Febooklibrary.v3/lists"}