This applications is following stack:
- React and vite for frontend rendering.
- Daisy UI for it's pre-made components
- Tailwind for styling and css
- JSON-server is utilized as a DB.
- RTK-Query for data fetching and caching tool.
- Email-JS for sending mails.
Pre-requisites - npm should be installed
- Install the dependencies -
npm i
- Bring up the server -
npm run server
- Run the frontend application -
npm run dev
- The app has role based authorization (admin ,Librarian , member)
-
Member Role (Creds: email - [email protected] & pass - 1234)
- Access for search books
- Borrow books and return books
- See the books that they have already borrowed.
-
Librarian Role (Creds: email - [email protected] & pass - 1234)
- All the member role accesses.
- Access for Adding Books, Editing Books, Updating Books, Removing Books
- Change the role of a user from a Member to Librarian / Librarian to a member
- Able to see the list of books and User
- Can ask a member to request for returning the borrowed books
-
Admin Role (Creds: email - [email protected] & pass - 1234)
- All the Librarian role accesses
- Change the role of a user from a Librarian to Admin/User / Admin/User to Librarian
- If Admin/Librarian creates an user what will be the password?
-The default password is
12345