Skip to content

risssabh/online-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Online Book Library

β€œ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.


πŸš€ Features

  • πŸ“Œ 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

πŸ› οΈ Technologies Used

  • React
  • React Router DOM
  • Redux Toolkit
  • React Redux

πŸ“ Folder Structure

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

πŸ§ͺ Getting Started

1. ⬇️ Clone the Repo

git clone [https://github.com/your-username/online-library.git]
cd online-library

2. πŸ”¨ Install Dependencies

npm install
# OR
yarn install

3. πŸ”¨ Install @reduxjs/toolkit and react-redux

npm install @reduxjs/toolkit react-redux

▢️ Run the App

npm start
# OR
yarn start

The app will open in your browser at:

http://localhost:3000

🧠 Redux Usage

  • booksSlice.js holds book data
  • All books (default + added) live in the Redux state
  • Use useSelector to access, and useDispatch to add books

πŸ’‘ Notes

  • Rating input must be between 1 and 5
  • Search bar shows 404 if no book matches

About

πŸ“š Book Library - A modern React + Redux online book library with categories, search, and modern design.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors