The eBookShelf is a comprehensive full-stack web application designed to manage books. The system allows administrators to browse, borrow, and return books, and to add and manage the collection.
- Borrow and return books
- Manage users and books (Admin functionality)
- Responsive and user-friendly interface
- React.js
- Axios for HTTP requests
- Bootstrap for styling
- Spring Boot
- MySQL for the database
- JPA/Hibernate for ORM
- Maven for project management
- Git for version control
- React js and npm
- Java JDK
- Maven
- MySQL
-
Clone the repository:
git clone https://github.com/yourusername/eBookLibrary.git
-
Navigate to the backend directory:
cd eBookShelf/backend -
Configure MySQL database:
- Update the
application.propertiesfile with your database details:spring.datasource.url=jdbc:mysql://localhost:3306/library_db?serverTimezone=UTC spring.datasource.username=your_username spring.datasource.password=your_password spring.jpa.hibernate.ddl-auto=update
- Update the
-
Build and run the backend application:
mvn spring-boot:run
- Navigate to the frontend directory:
cd ../frontend - Install dependencies:
npm install
- Start the frontend application:
npm start
- Open your web browser and navigate to http://localhost:3000.
- Browse the collection of e-books.
- Borrow or return e-books as needed.
- Admins can log in to add, edit, or delete e-books and manage user accounts.
GET /api/books- Get all booksPOST /api/books- Add a new bookPUT /api/books/{id}- Update a bookDELETE /api/books/{id}- Delete a bookPOST /api/books/{bookId}/borrow/{userId}- Borrow a bookPOST /api/books/{bookId}/return- Return a book
GET /api/users- Get all usersPOST /api/users- Add a new userDELETE /api/users/{id}- Delete a user
If you have any questions or suggestions, feel free to contact me at utsav45.jn@gmail.com.