A full-stack Library Management System built with Node.js, Express, MySQL, HTML, CSS, JavaScript, and Bootstrap.
- Admin login with session authentication
- Dashboard with live library analytics
- Book CRUD operations with MySQL persistence
- Student management with add / edit / delete
- Issue and return workflow
- Transaction history and export to Excel/PDF
- Search, sort, and filter books
- File upload support for book cover images
- QR codes and barcode generation for books
- Responsive Bootstrap UI
backend/- Express API and MySQL integrationfrontend/- Static HTML pages, CSS, and JavaScriptdatabase/- SQL schema and seed data
- Install backend dependencies:
cd backend npm install - Create the database and tables:
- Import
database/schema.sqlinto MySQL.
- Import
- Seed the database:
- Run
database/seed_books.sqlin MySQL.
- Run
- Configure environment variables:
- Copy
backend/.env.exampletobackend/.env - Update MySQL credentials and
SESSION_SECRET
- Copy
- Start the backend server:
cd backend npm start - Open the frontend:
- Navigate to
http://localhost:3000/login.html
- Navigate to
- Username:
admin - Password:
Admin@123
- The backend serves the frontend from the
frontend/directory, so pages are accessible athttp://localhost:3000/pages/.... - All book and student data is stored in MySQL.
- The application uses sessions to keep the administrator authenticated.
- VS Code
- MySQL Workbench
- Postman
This project is provided as a college final-year project template. Feel free to customize and extend it.