This repository contains the frontend codebase for a comprehensive Library Management System developed using React.js. The system provides functionalities for managing books, borrowers, transactions, and user roles, offering a seamless experience for librarians and users.
- Add, Retrieve, Update, Delete:
- Manage the library inventory with operations for adding, viewing, modifying, and removing books.
- Search Functionality:
- Search books by keyword, including book title, author, or ISBN.
- Manage Borrowers:
- Add, update, or delete borrower information.
- Search Functionality:
- Find borrowers by keywords, including phone number, last 4 digits of the phone number, email, or borrower number.
- Check-in/Check-out:
- Process book transactions for borrowers.
- Transaction History:
- Retrieve transaction history by ISBN or borrower number.
- Authentication & Authorization:
- Role-based access control for librarians.
- Admin privileges for user management.
- Clone this repository:
git clone https://github.com/your-username/library-management-frontend.git
- Install dependencies:
cd library-management-frontend npm install
Update the authenticationApiServices.js
file:
// authenticationApiServices.js
const BaseURL = 'http://localhost:8080'; // Replace with your backend URL
Start the development server:
npm start
- Token-based authentication system.
- Tokens stored in local storage upon successful login.
Contains React components responsible for rendering UI elements.
Axios-based services for interacting with the backend API.
AuthContext for handling authentication and token management.
- React.js for the frontend framework.
- Axios for making HTTP requests to the backend.
- Local storage for token-based authentication.
This project is licensed under the MIT License.