A simple Library Management System built using MERN stack.
- About the Project
- Features
- Usage
- Built With
- Getting Started
This Library Management System is a full-stack application designed to help administrators manage book records, student borrowing, and return activities. It is built using the MERN stack (MongoDB, Express, React, and Node.js) and secured with JWT for authentication.
- Admin Dashboard: Manage books, view borrowing history, and handle user accounts.
- Student Portal: Search and borrow books, view personal borrowing history.
- Authentication: JWT-based authentication for secure access.
You can use the demo version with the following credentials:
-
Admin:
- Username: sarah
- Password: sarah
-
Student:
- Username: gemry
- Password: gemry
To run this project locally, you’ll need:
- Node.js installed on your machine.
- MongoDB for the database.
-
Clone the repository:
git clone https://github.com/bgemry34/library-system-mern.git
-
Install dependencies for both the frontend and backend:
cd library-system-mern npm install cd client npm install
-
Set up environment variables:
- Create a
.env
file in the root directory and add the following:MONGO_URI=your-mongo-db-uri JWT_SECRET=your-secret-key PORT=your-port-number
- Create a
-
Run the application:
- For the backend:
npm run server
- For the frontend:
npm run client
- For the backend:
-
Access the app at
http://localhost:3000
.