Skip to content

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.

Notifications You must be signed in to change notification settings

ivanmvh/AWESOME-BOOKS-ES6-V2-IMVH

Repository files navigation

logo

Awesome Books - ES6

📗 Table of Contents

📖 [Awesome-books-ES6]

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.

🛠 Built With

Tech Stack

  • HTML
  • JavaScript
  • CSS
  • ES6
  • Modules (import, export)

Key Features

  • 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.

(back to top)

🚀 Live Demo

[Live Demo Link] (https://ivanmvh.github.io/AWESOME-BOOKS-ES6-V2-IMVH/#)

(back to top)

💻 Getting Started

Prerequisites

  • 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.

Setup

Clone this repository to your desired folder:

git clone git@github.com:Juank628/awesome_books.git

Install

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

Usage

This page registers books with author and title of the book. To register a book:

  1. Type the author's name.
  2. Type the book's title.
  3. Click on Add button below.
  4. The books will be added to the list and will be displayed.

To remove a book from the list:

  1. Find the book in the list.
  2. Click on remove button for the respective book.

👥 Authors

👤 Ivan Martinez von Halle

(back to top)

🔭 Future Features

  • Database connection

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, please give us an star

(back to top)

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published