Skip to content

About

A web-based Library Management System for managing books, members, issue-return records, overdue fines, transactions, reports, and JSON-based local storage.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Library System

A web-based Library Management System for managing books, members, book issuing, returns, transaction history, overdue records, and library reports.

Features

  • Admin login system
  • Dashboard with library summary
  • Add and manage books
  • Add and manage members
  • Auto-generated book and member IDs
  • Issue books to registered members
  • Return issued books
  • Due date tracking
  • Overdue fine calculation
  • Transaction history
  • View all books and members
  • Overdue records
  • Export reports as CSV
  • Print transaction and overdue reports
  • JSON-based local data storage
  • Node.js and Express.js backend

Tech Stack

  • HTML
  • CSS
  • JavaScript
  • Node.js
  • Express.js
  • JSON

Project Structure

library-system/
├── backend/
│   └── library.c
├── data/
│   ├── books.json
│   ├── members.json
│   ├── member.json
│   └── transactions.json
├── frontend/
│   ├── login.html
│   ├── dashboard.html
│   ├── style.css
│   └── script.js
└── middleware/
    ├── server.js
    ├── package.json
    └── package-lock.json
Installation
Clone the repository:

git clone https://github.com/your-username/Library-System.git
cd Library-System
Go to the middleware folder:

cd middleware
Install dependencies:

npm install
Start the server:

npm start
Open the app in your browser:

http://localhost:3000/login.html
Default Admin Login
Username: admin
Password: admin123
API Features
The Express server provides endpoints for:

Login
Add member
View members
Delete member
Add book
View books
Delete book
Issue book
Return book
View transactions
View overdue records
Dashboard summary reports
C Backend Demo
The backend/library.c file contains a simple C program that demonstrates book management operations.

To compile it:

gcc backend/library.c -o library
To run it:

./library
On Windows:

library.exe
Important Note
Do not upload node_modules to GitHub. It can be regenerated using:

npm install
If your JSON files contain real member, book, or transaction data, clear them before uploading publicly.

Author
Created by Aman.


**Recommended `.gitignore`**

```gitignore
node_modules/
npm-debug.log*
.env

.DS_Store
Thumbs.db

*.exe
*.o
*.out

.vscode/
.idea/

# Optional: ignore local/private data if needed
# data/*.json
Files You Should Upload

Upload these:

backend/library.c
data/books.json
data/members.json
data/member.json
data/transactions.json
frontend/login.html
frontend/dashboard.html
frontend/style.css
frontend/script.js
middleware/server.js
middleware/package.json
middleware/package-lock.json
README.md
.gitignore
Do not upload these:

middleware/node_modules/
node_modules/
*.exe
MinGW Installer.lnk
GitHub About Section

Description:
A web-based Library Management System using HTML, CSS, JavaScript, Node.js, Express, JSON storage, and a C backend demo.

Website:
Leave blank unless you deploy it.

Topics:
library-management-system library-system nodejs expressjs javascript html css json-database web-application book-management

About

A web-based Library Management System for managing books, members, issue-return records, overdue fines, transactions, reports, and JSON-based local storage.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages