Skip to content

This is a simple to-do list created mainly with JavaScript, the to-do list contains features where new lists can be added, the completed to-do list can be cleared at once, the exiting list can be e…

Notifications You must be signed in to change notification settings

farouqdaif1/To-Do-list2

Repository files navigation

To-do-list

A simple yet powerful to-do list, inspired by the minimalist website. ![image]screenshot

Live Demo

[Live Demo Link][https://farouqdaif1.github.io/To-Do-list2/]

Built With

  • HTML
  • CSS
  • JS
  • WEBPACK

Project requirements

  • Set up a new project with webpack that is based on the webpack exercise you have already completed.
  • Create an index.html file and write your HTML markup here. Create an empty To Do List placeholder (<div> or <ul> element). The index.html file must be 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:
    • description [string].
    • completed [bool].
    • index: [number].
  • Write 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 should apear in order of the index values for each task.
  • Create a style.css and set rules for the To Do List. CSS must be loaded by Webpack Style/CSS Loader. Your list should be a clone of the part of the minimalist project captured in the video below. link to video
  • All your source files (index.html, index.js and style.css) must be located in /src directory and your distribution files will be generated by webpack and served by webpack dev server from /dist folder.

Getting Started

To clone this project Run command: $git clone the reposiratory or press the green Code button in the upper right corner and choose to download from the Download ZIP link. To setup the webpack for this project

Install Webpack

  • Follow the instructions from the getting started guide to set up the basics. Implement all the steps from Basic Setup to NPM Scripts.
  • The next step is to add html file : Follow the instructions from the setting up HtmlWebpackPlugin guide Then
npm run build
  • Create a /src/index.html for writing the project

  • Then modify webpack.config.js to point HtmlWebpackPlugin towards your template file:

plugins: [
  new HtmlWebpackPlugin({
-   title: 'Output Management',
+   template: './src/index.html'
  }),
],
  • Run npm run build to update the /dist/index.html.
  • Then it is time to add some style to the project: Follow the steps in loading CSS guide. Next, execute npm run build and check if the HTML body style has changed.

Setup local dev server

Prerequisites

  • Code editor (VS Code)

Authors

👤Farouq Daif

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

This is a simple to-do list created mainly with JavaScript, the to-do list contains features where new lists can be added, the completed to-do list can be cleared at once, the exiting list can be e…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published