This project is a Library Management System implemented in Java. It features server-client communication for admin authentication and user management, as well as database operations for managing library books.
- Admin Authentication: Admin login using hardcoded credentials.
- User Management: Add, verify, and manage library users.
- Library Operations: Borrow, delete, insert, and update book records in a MySQL database.
- Console Interface: Interactive console interface for admin operations.
- Java Development Kit (JDK) 8 or higher
- MySQL Database
- Apache NetBeans (optional, for easy project management)
-
Clone the Repository:
git clone https://github.com/RafiAhamed07/Library-Management-System.git cd Library-Management-System -
Configure Database:
- Create a MySQL database.
- Update the
LibraryDatabaseOperationsclass with your database name, username, and password.
-
Compile and Run:
- Use an IDE like NetBeans to open the project.
- Compile and run the
Serverclass to start the server. - Compile and run the
Adminclass to start the client.
-
Start the Server:
- Run the
Serverclass to start listening for client connections.
- Run the
-
Admin Login:
- Run the
Adminclass and enter the username and password ("admin" and "202467").
- Run the
-
User Options:
- Log in or register as a library member.
- Perform library operations such as adding, removing, borrowing books, and updating book records.
Handles admin authentication and user interactions.
Handles client connections and verifies admin credentials.
Provides methods for database operations such as borrowing, deleting, inserting, and updating book records.
Implements the main library functions and user interaction menu.
Handles user verification and registration.
Ensure the server is running before attempting to log in as an admin. The database must be correctly configured and populated with initial data.
This project is open-source and available under the MIT License.
Feel free to contribute to this project by submitting issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.
For any queries, contact the repository owner.
-
Add a new book:
Enter book name: The Great Gatsby Enter the author's name: F. Scott Fitzgerald -
Remove a book:
Enter book name: The Great Gatsby -
Borrow a book:
Enter book name: The Great Gatsby
Happy coding!