- user can add, delete, update books
- user can add, delete, update borrowers
- user can add, update authors
- user can borrow books
- user can return books
-
Library(Database) Information is available here. In case of data not fetched and refreshed properly, force refresh button is given in the page.
-
-
Add Book User can add book with the following fields:(in case of author is not in Author schema, author will automatically get added with required fields only. later user may update the secondary fields)
-
Add Borrower User can add borrower with the following fields:
-
Add Author
User can add author with the following fields:(in case books are not it books schema, books will automatically get added with required fields only. later user may update the secondary fields)
-
-
-
Update Book User can enter partial case insensitive book name or category and update the book with the following fields:
on selecting the book from the booklist, user can update the book with the following fields:
-
Update Borrower User can enter partial case insensitive borrower name and update the borrower with the following fields:
on selecting the borrower from the borrower list, user can update the borrower with the following fields:
-
Update Author User can enter partial case insensitive author name and update the author with the following fields:
on selecting the author from the author list, user can update the author with the following fields:
-
-
-
Delete Book User can enter partial case insensitive book name or category and delete the book with the following fields:
on selecting the book from the booklist, user can re-check the values once, then by typing "delete" and pressing the Confirm Delete to delete the book from DB:
-
Delete Borrower Same components codes have been used for delete borrower as well.
-
-
-
Initially all books have borrower field null means it is not borrowed by any user. So, user can borrow the book by entering the partial case insensitive book name or category and partial case insensitive borrower name:
on selecting the book from the booklist, user can re-check the values once, then by typing "checkout" and pressing the Checkout button to borrow the book:
There is a ""Save as PDF" button to save the checkout details in the PDF format. The PDF will be saved in the root directory with the name
checkout-${book.title}.pdf
-
-
- Initially, all books have borrower field null means it is not borrowed by any user. The logic here is written like, the books will be shown in the booklist only if the book has some borrower (the book is checked out)
User can verify the readOnly fields and then by typing "checkin" and pressing the Checkin button to return the book:
- Initially, all books have borrower field null means it is not borrowed by any user. The logic here is written like, the books will be shown in the booklist only if the book has some borrower (the book is checked out)
- All the "Go Back Home" or "Go Home" buttons works perfectly. You can even click the "Library Manager" text on the header to go to the home page.
- The "Save as PDF" button is available only in the Book Checkout page.
- Its not explicitly TypeSafe
- The code may not be very optimal but it is working fine.
books
toauthors
andbooks
toborrowers
are one-to-one relationshipauthors
tobooks
andborrowers
tobooks
are one-to-many relationship- New components have been added like show all books, show all checked out bookss, show alll avallable books, etc. These are not in nav bar but clicking different Status components from the home page will take you to the respective pages.
- Sayak Ghorai (github/sayakghorai34), 29th May 2024