Welcome to the Book List App! This is a simple yet powerful web application where users can add, remove, and store books in the browser using localStorage
. π Built using JavaScript, this app provides a great way to track your reading list right within your browser! π
- π Add Books: Easily add books to your list by filling out the form with the title, author, and ISBN.
- ποΈ Remove Books: Delete books from your list with a single click!
- πΎ Persistent Storage: Books are stored in your browserβs
localStorage
, so your list remains even after refreshing the page. - β‘ Dynamic UI Updates: The list dynamically updates when books are added or removed without refreshing the page.
- π¨ Validation & Alerts: Prevent empty submissions and get visual feedback with success and error alerts.
Check out the live version of the app here: Live Demo
- Fill in the bookβs title, author, and ISBN number in the form.
- Click the
Add Book
button, and the book will appear in the list below. - An alert will confirm the successful addition of the book.
- Click the red β next to any book to remove it from the list.
- The book will also be deleted from
localStorage
, ensuring it doesnβt reappear upon page reload.
- All book data is stored in the browserβs
localStorage
, so even if you close the app and return later, your book list will remain intact!
The app is styled with a clean and minimalistic design, providing a user-friendly experience. Alerts for errors or successful operations appear at the top of the page and fade away after 1.5 seconds.
Want to run this app locally? Itβs simple! Follow the steps below:
- Clone the repo:
git clone https://github.com/yourusername/book-list-app.git```
- Open the project: Navigate to the project folder and open the
index.html
file in your browser.
Handles the creation of book objects with the properties title
, author
, and isbn
.
Handles UI tasks such as:
- Displaying books from
localStorage
- Adding and removing books from the DOM
- Showing alerts for user feedback
- Clearing input fields after submission
Handles the storage of books in localStorage
, including:
- Fetching books from storage
- Adding new books to storage
- Removing books from storage
- DOMContentLoaded: Loads and displays stored books when the page loads.
- Submit Event: Captures form input and adds a new book.
- Click Event: Removes a book when the delete button is clicked.
- HTML5 for the structure
- CSS3 for styling
- JavaScript for interactivity
- localStorage for persistent data storage
Want to contribute? Awesome! Follow the steps below:
- Fork the project.
- Create your feature branch:
git checkout -b feature/amazing-feature
. - Commit your changes:
git commit -m 'Add amazing feature'
. - Push to the branch:
git push origin feature/amazing-feature
. - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to reach out for suggestions or collaborations:
- GitHub: yourusername
- Email: [email protected]
Enjoy using the Book List App! Happy reading! πβ¨