fmanimashaun / To-do-List-review

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To Do list

Overview

In this project, I built a simple HTML list of To Do tasks with focus on it structure using Javascript to load the html elements dynamically. In addition, I implemented the CRUD (create, read, update, delete) methods as a way to add, remove or update the task list. This simple web page was built using webpack and served by a webpack dev server.

Project Objectives (Work-in-progress)

Page Structure

  • A new project was setup with webpack that is based on the webpack exercise completed earlier.

  • Create an index.html file and write your HTML markup here. Create an empty To Do List placeholder using <div> element. The index.html file was set as a template using the HTML Webpack Plugin.

  • Create an index.js file and set an array of some simple to do tasks (array of objects). Each task object should contain three keys:

    i. description [string]

    ii. completed [bool]

    iii. index: [number]

  • Created a function to iterate over the tasks array and populate an HTML list item element for each task.

  • On page load render the dynamically created list of tasks in the dedicated placeholder. The list appear in order of the index values for each task.

  • Create a style.css and set rules for the To Do List. CSS was loaded by Webpack Style/CSS Loader.

Page add & remove functionality

  • Create a new JavaScript file for the new functionality.
  • Implement a function for adding a new task (add a new element to the array).
  • Implement a function for deleting a task (remove an element from the array).
  • Implement a function for editing task descriptions.
  • By default new tasks should have the property completed set to false and the property index set to the value of the new array length (i.e. if you're adding a 5th task to the list, the index of that task should equal to 5).
  • Deleting a task updates all remaining items' indexes, so they represent the current list order and are unique(i.e. if we delete the first task index 1 from the list, the index of the next task(2) will set to 1)..
  • All changes to the To Do List should be saved in local storage.

DEMO LINK

Live Demo Link

Screenshots

Screenhot

Built With

Getting Started

  • [Optional] Install git bash to your machine to enable you to clone this repo.
  • install Visual Studio to be able to host a local live version.
  • Install a browser to view the local live version.

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Internet connection
  • A github account

Setup

  • Open your GitHub account the repository's link

Install

  • copy the repo's link and clone it by writing git clone https://github.com/fmanimashaun/To-do-List.git on your git bash terminal.
  • npm install to install the dependencies

Run tests

  • You can check for errors by running linter tests found in the github flows.

Deployment

  • run npm run start to run it locally.

Authors

👤 Engr. Animashaun Fisayo

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About


Languages

Language:JavaScript 61.1%Language:SCSS 22.7%Language:HTML 8.3%Language:CSS 8.0%