- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- ❓ FAQ
- 📝 License
In this project, we build a basic website that allows users to add/remove books from a list. We achieve that by using JavaScript objects and arrays. We also dynamically modify the DOM and add basic events.
- HTML
- JavaScript
- CSS
- ES6
- Modules (import, export)
- Create a collection that keeps a list of books (hint: you can use an array of objects for that).
- Create a function to add a new book to the collection, with title and author.
- Create a function to remove a book from the collection (hint: you can use the array filter() method).
- Display all books saved in the collection in the top part of the page.
- Make sure that when a user clicks the "Add" button:
- A new book is added to the collection.
- The new book is displayed in the page.
- Make sure that when a user clicks the "Remove" button:
- The correct book is removed from the collection.
- The correct book dissapears from the page.
- Make sure that data is preserved in the browser's memory by using localStorage.
- To debug your application, you can use console.log(). Remember to remove debugging code before pushing your code to the remote repository.
- Don't use any library or framework, use only plain JavaScript.
[Live Demo Link] (https://ivanmvh.github.io/AWESOME-BOOKS-ES6-V2-IMVH/#)
- Have git installed. (For version control)
- Have text editor installed. (VSCode, sublime, atom)
- Have CSS,HTML & JS Linters installed and configured. For further information, visit this link to get better understanding on each linters used on this project.
Clone this repository to your desired folder:
git clone git@github.com:Juank628/awesome_books.git
Install this project with:
Linters installation webhint - npm install --save-dev hint@7.x stylelint - npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x ESLint - npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x
This page registers books with author and title of the book. To register a book:
- Type the author's name.
- Type the book's title.
- Click on Add button below.
- The books will be added to the list and will be displayed.
To remove a book from the list:
- Find the book in the list.
- Click on remove button for the respective book.
👤 Ivan Martinez von Halle
- GitHub: @ivanmvh
- Twitter: @imprivado
- LinkedIn: Iván Martínez von Halle
- Database connection
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, please give us an star