BookMart is a React application for managing books. It allows users to view books fetched from an API, add new books, edit and delete existing books locally, and manage favorite books. The application also supports pagination to display books in a paginated manner.
- 📖 View books fetched from an API
- ➕ Add new books
- ✏️ Edit and delete existing books locally
- ❤️ Manage favorite books
- 📄 Pagination to display books in a paginated manner
- 📱 Responsive design
- ⚛️ React
- 🛠️ Redux Toolkit
- 📝 TypeScript
- 💅 Ant Design
- 🎣 react-hook-form
- 🎨 SCSS
- 🌐 Axios
- 🚦 react-router-dom
- ⚡ Vite
- Clone the repository:
git clone https://github.com/junaid7lone/bookmart.git
- Navigate to the project directory:
cd bookmart
- Install the dependencies:
pnpm install
- Start the development server:
pnpm run dev
- Open your browser and navigate to
http://localhost:5173
- Use the sidebar to navigate between the different sections of the app:
- 🏠 Home: View all books
- ❤️ Favorites: View your favorite books
- ➕ Add New Book: Add a new book to the collection
- Navigate to the "Add New Book" page using the sidebar.
- Fill out the form with the book's title, author, cover image URL, publication date, and description.
- Click "Add Book" to save the book to the local state.
- Click the "Edit" button on the book card you wish to edit.
- Update the book information in the form.
- Click "Update Book" to save the changes to the local state.
- Click the "Delete" button on the book card you wish to delete.
- The book will be removed from the local state.
- Click the heart icon on a book card to add it to your favorites.
- Navigate to the "Favorites" page using the sidebar to view your favorite books.