βWhere Stillness Meets Storiesβ
A modern, responsive React application for browsing, searching, and adding books across genres like Fiction, Fantasy, Sci-Fi, Anime/Manga, and more β complete with Redux state management and beautiful Gen Z styling.
- π Home Page with book categories and popular books
- π Browse books by category or search by title/author
- π View detailed book info (title, author, description, rating)
- β Add your own books using a form with validation
- π§ Redux for book state management
- β Custom 404 Page for undefined routes
- React
- React Router DOM
- Redux Toolkit
- React Redux
online-library/
βββ public/
β βββ index.html
βββ src/
β βββ components/
β β βββ Navbar.js
β β βββ BookCard.js
β βββ pages/
β β βββ Home.js
β β βββ BrowseBooks.js
β β βββ BookDetails.js
β β βββ AddBook.js
β β βββ NotFound.js
β βββ redux/
β β βββ store.js
β β βββ booksSlice.js
β βββ App.js
β βββ index.js
β βββ main.css
βββ README.md
βββ package.json
git clone [https://github.com/your-username/online-library.git]
cd online-librarynpm install
# OR
yarn installnpm install @reduxjs/toolkit react-reduxnpm start
# OR
yarn startThe app will open in your browser at:
http://localhost:3000
booksSlice.jsholds book data- All books (default + added) live in the Redux state
- Use
useSelectorto access, anduseDispatchto add books
- Rating input must be between 1 and 5
- Search bar shows 404 if no book matches