Code Monkey home page Code Monkey logo

todo-app-vanilla's Introduction

todo-app-vanilla

A simple to do list web app powered only by HTML, CSS, and vanilla ES5 JavaScript.

Install http-server

To spin up the application, install http-server using npm or Homebrew (no need to do both):

npm

npm install --global http-server

Homebrew

brew install http-server

Run the server locally

Ensure you are inside the folder todo-app-vanilla if you are not already.

Run the following command:

http-server

You should see the server start, as well as a message saying which IP address is being used. It may look something like:

Available on:
  http://127.0.0.1:8080
  http://192.168.0.17:8080

Copy and paste either of those addresses into your browser. The default is http://127.0.0.1:8080 or equivalently, http://localhost:8080/. You should now be able to see the To Do list app in your browser!

Using the App

Basic Functionality

To add a list item, enter an item (i.e. "Do laundry") into the input field and click the "Add" button or press "Enter".

To mark an item as done, click the item.

To undo marking an item as done, just click the item again.

Extra Functionality

To clear all your list items, click "Clear All".

To clear any checked-off list items, click "Clear Completed".

Citations

Basic ideas and implementation for creating list items: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_todo

Triggering an event based on keypress: https://www.w3schools.com/howto/howto_js_trigger_button_enter.asp

Clearing all items in a list: https://www.codegrepper.com/code-examples/javascript/javascript+remove+all+li+elements+from+ul

todo-app-vanilla's People

Contributors

binita-g avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.