A simple console-based Library Management System built in Java.
This is my first project after a month of learning Java, created to practice OOP, collections, and user authentication.
- π User Authentication (Admin & Student roles)
- π€ Registration & Login System
- π’οΈ Database to store usernames & passwords
- π Add, Show, Search Books (by title & author)
- π¦ Issue & Return Books
- β Book Availability Tracking
- Language: Java
- Data Structures:
ArrayList,HashMap - Tools: Java Scanner for input
-
Clone the repository:
git clone https://github.com/asmit159/library-management-system.git cd library-management-system -
Compile the code: javac LibraryManager.java
-
Run the Program: java LibraryManager
A existing database sheet (csv) should be present to successfully store usernames and passwords.
If database file is absent, then the username and password is stored temporarily in the system and the user will not be able to login using the same credentials in the future.
To create a new database sheet, login as root user.
Username: root
Password: Admin123
And select "Create new Database" from the menu
This is just a prototype. Planned features:
πΎ File / Database storage for persistent data
π₯ Track which student issued a book
π₯οΈ GUI or Web Interface (JavaFX / Spring Boot / MERN stack)
π More advanced search & filtering
(Code cleaned using chatgpt)