Library Management System in MERN Stack 20% OFF
React Project

Library Management System in MERN Stack

Library Management System in MERN Stack is a full-stack web application built with MongoDB, Express.js, React.js, and Node.js. It helps administrators and librarians manage books, authors, categories, library members, book issues, returns, renewals, reservations, fines, notifications, and reports. The application features database-driven dashboards, QR code generation, PDF and CSV exports, JWT authentication, and role-based permissions.

₹1,999.00 ₹2,499.0020% off
Built with
ReactJavaScriptNode.jsMongoDB
You get
Source codeDatabaseProject reportPPTSetup guide
Delivery
Instant download after payment

Project Overview

The Library Management System in MERN Stack is a full-stack web application developed by UPDATEGADH to simplify daily library operations through a centralized digital platform. Built using MongoDB, Express.js, React.js, and Node.js, it provides tools for managing library collections, members, borrowing transactions, reservations, fines, and reports.

The system includes separate Admin and Librarian roles, database-driven dashboard statistics, interactive charts, searchable tables, and reporting tools. It helps libraries maintain accurate inventory records, monitor book circulation, and organize administrative activities efficiently.

Available Features

  • Admin and Librarian Dashboard: Display database-driven statistics for books, available copies, borrowers, active loans, overdue books, and fines. View popular books, recent transactions, borrowing trends, and activity.
  • Book Management: Add, view, update, and search book records. Maintain ISBN, title, author, category, publisher, publication year, shelf location, quantity, and description. Upload cover images and filter books by availability and stock status.
  • QR Code Generation: Generate QR codes containing book ISBN information to support book identification.
  • Author and Category Management: Create, edit, view, and search authors and categories. Associate books with the relevant records and prevent deletion of records referenced by existing books.
  • Borrower Management: Register library members, maintain member IDs and contact information, manage membership status and expiry dates, and review borrowing activity. Generate member ID QR codes.
  • Book Issue and Return: Issue books to eligible borrowers, record issue dates and due dates, process returns, update available inventory, and maintain transaction history.
  • Loan Renewal: Renew eligible loans according to configured rules and prevent duplicate active loans of the same book for a borrower.
  • Reservations and Waiting Lists: Reserve unavailable books, manage waiting lists, mark reservations ready when copies become available, hold reserved copies for a configurable period, and expire uncollected reservations.
  • Fine Management: Calculate late-return fines using overdue days and configurable daily rates. Support optional maximum fine limits, record fine payments, manage approved waivers, and track outstanding fines.
  • Reports and Notifications: Generate inventory, overdue-loan, active-borrower, popular-book, and borrowing-trend reports. Export reports in CSV and PDF formats and generate in-app notifications for upcoming due dates, overdue books, ready reservations, and low stock.
  • User Management and Security: Manage administrator and librarian accounts, support profile management and password changes, maintain activity logs, and protect API routes using JWT authentication and role-based permissions.

User Roles

Administrator

The administrator manages staff accounts, library settings, books, authors, categories, borrowers, reports, and activity logs. Administrator-only permissions include eligible record deletion and fine waivers.

Librarian

The librarian manages books, borrowers, authors, categories, book issues, returns, renewals, reservations, fine payments, and reports. Actions restricted to administrators remain unavailable to librarians.

Borrowers are managed as library members by staff. The application provides Admin and Librarian login roles rather than a separate borrower login portal.

Technology Stack

  • Frontend: React.js and Vite
  • UI Library: Ant Design
  • Backend: Node.js and Express.js
  • Database: MongoDB
  • Database Modeling: Mongoose
  • Authentication: JWT
  • Password Security: bcryptjs
  • Charts: Recharts
  • PDF Reports: PDFKit
  • QR Codes: QRCode

Software and Tools Required

  • Node.js 18 or later
  • npm package manager
  • MongoDB Community Server or MongoDB Atlas
  • Visual Studio Code
  • A modern web browser

Project Benefits

  • Centralizes library inventory and member records.
  • Organizes book circulation, renewals, and reservations.
  • Calculates late-return fines using configurable rules.
  • Provides real database-driven statistics and reports.
  • Supports PDF and CSV exports and QR code generation.
  • Demonstrates full-stack development using the MERN stack.

More Details and Full Documentation

For complete project details, screenshots, features, and installation instructions, visit the original UPDATEGADH project page.

More Details and Full Documentation

  1. Admin and Librarian Dashboard
  2. Book Management
  3. Author and Category Management
  4. Borrower Management
  5. Book Issue and Return Management
  6. Loan Renewal Management
  7. Reservations and Waiting Lists
  8. Fine Management
  9. Reports and Notifications
  10. User Management and Security
  11. QR Code Generation
  12. Profile Management
  1. Install Node.js 18 or later, npm, MongoDB Community Server or MongoDB Atlas, and Visual Studio Code.
  2. Extract library-mern.zip and open the extracted project folder in Visual Studio Code.
  3. Open the terminal and navigate to the backend directory: cd backend
  4. Install backend dependencies: npm install
  5. Create the backend environment file: copy .env.example .env
  6. Open backend/.env and configure the following variables: PORT=5000, MONGO_URI=mongodb://127.0.0.1:27017/library_mern, JWT_SECRET=your_generated_secret, JWT_EXPIRES_IN=7d, CLIENT_URL=http://localhost:5173, ADMIN_NAME=System Admin, ADMIN_EMAIL=admin@library.local, ADMIN_PASSWORD=your_strong_admin_password, LIBRARIAN_NAME=Head Librarian, LIBRARIAN_EMAIL=librarian@library.local, LIBRARIAN_PASSWORD=your_strong_librarian_password.
  7. Generate a secure JWT secret using: node -e "console.log(require('crypto').randomBytes(48).toString('hex'))"
  8. Replace the example passwords with strong passwords and keep the .env file private.
  9. Ensure MongoDB is running and the configured database connection is valid.
  10. From the backend directory, create the initial accounts: npm run seed:admin
  11. To load optional sample books, authors, borrowers, transactions, reservations, and other library records, run: npm run seed
  12. Start the backend from the backend directory: npm run dev
  13. Open a second terminal and navigate to the frontend directory: cd frontend
  14. Install frontend dependencies: npm install
  15. Start the frontend development server: npm run dev
  16. Open http://localhost:5173 in your browser and sign in using the administrator credentials configured in backend/.env.
  17. To create a production frontend build, run npm run build from the frontend directory.
  18. To start the production backend, navigate to the backend directory and run npm start.

Stuck while running it? Chat with us on WhatsApp for free installation help.

You get complete source code, the database file, the project report, a PPT presentation and a setup guide.

Library Management System in MERN Stack is built with React, JavaScript, Node.js and MongoDB.

The download is available immediately after payment on the order page and in My Account. A copy of the order is also sent to your email.

Yes. A setup guide is included, and free installation support is available on WhatsApp if you get stuck.

Yes. It comes with a project report and a PPT presentation, which most colleges ask for along with the working project.

Yes. You can request changes or extra modules through the Custom Project page.

No reviews yet. Be the first to review this project.

Write a review

₹1,999.00₹2,499.00

More React Project