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.
The backend for this application is implemented using Spring Boot, providing robust API endpoints for managing the library's core functionalities.
You can find the backend repository here: Library Management System - Backend
- 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.