A simple Library Management System built using Node.js, Express.js, EJS, and SQLite.
This project allows librarians to manage books, students, borrowed books, and library visits through a web interface.
- Librarian Login
- Session-based authentication
- Total Books
- Total Borrowed Books
- Total Library Visits
- View all books
- Add new books
- Edit existing books
- View students
- Add new students
- Borrow books
- Automatic return date (15 days from borrow date)
- Return books
- Search borrowed books by title
- Mark student entry
- Mark student exit
- Calculate visit duration
- Track current status (Inside / Left)
- Node.js
- Express.js
- EJS
- SQLite3
- Express Session
- HTML
- CSS
Clone the repository:
git clone https://github.com/aakankshakpoojari/library_management_system.git
cd library-management-systemInstall dependencies:
npm installStart the application:
node app.jsor
nodemon app.jsThe application will run at:
http://localhost:3000Use the following credentials to log in:
Email: aak@gmail.com
Password: 1234The project uses SQLite and automatically creates:
- LIBRARIANS
- STUDENTS
- BOOKS
- BORROWEDBOOKS
- LIBRARYVISITS
on first run.
library-management-system/
│
├── public/
│ └── style.css
│
├── views/
│ ├── login.ejs
│ ├── dashboard.ejs
│ ├── books.ejs
│ ├── addBook.ejs
│ ├── editBook.ejs
│ ├── students.ejs
│ ├── addStudent.ejs
│ ├── borrowedBooks.ejs
│ ├── borrowBook.ejs
│ ├── search.ejs
│ └── visits.ejs
│
├── app.js
├── db.js
├── package.json
└── library.db- Delete books
- Edit students
- Advanced search and filtering
- Fine calculation for overdue books
- Email reminders for return dates
- Responsive mobile UI improvements
didnt expect you to read till the end. but thanks :)