Giter Site home page Giter Site logo

thafsi-pv / todoapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 164 KB

An efficient React TODO app with create, edit, and delete functionality, filtering options, pending task count, clear all completed tasks, and a Node.js/Express.js backend

Home Page: https://todo-app-thafsi-pv.vercel.app

JavaScript 72.84% HTML 2.11% CSS 25.05%

todoapp's Introduction

Todo App

Screenshot 2023-05-21 at 8 48 32 PM

This is a Todo App which uses React for the front-end and Node.js with Express.js for the back-end API. It allows users to add, delete, edit and mark todos as completed. It also provides filter options for all, active and completed todos.

Features

Add todo

Users can add a new todo item by clicking on the input field and typing a description for the task, then pressing add button.

Delete todo

Users can delete a todo item by clicking on the "Delete" button next to the item.

Edit todo

Users can edit a todo item by clicking on the "Edit" button next to the item, making changes to the description in the input field that appears, and then pressing Enter to save the changes.

Mark completed as strike through todo item

Users can mark a todo item as completed by clicking on the checkbox next to the item. The app will automatically display it as a strikethrough text.

Filter option all, active ,completed

Users can filter the todo list by clicking on the corresponding button. The "All" button shows all tasks, the "Active" button shows incomplete tasks, and the "Completed" button shows completed tasks.

Clear all completed todo

Users can clear all completed tasks by clicking on the "Clear Completed" button.

Shows count of active todo bottom

The app displays the number of active tasks at the bottom of the todo list.

Back-end API

The back-end API using the Node.js with Express.js framework and supports the following methods on the /api/todo endpoint:

  • GET to retrieve all todos
  • POST to create a new todo
  • DELETE to delete a specific todo by ID
  • PATCH to update a specific todo's isCompleted property
  • PUT to update a specific todo's description
  • DELETE to delete all completed todos

Implementation Details

The app uses a JSON file to store the list of todos, and all CRUD operations are performed through API calls to the back-end.

List of Node.js modules used:

  • fs module for reading and writing the JSON file
  • express, and cors modules for implementing the API and handling request and response objects
  • axios module for handling API requests and responses on the front-end

todoapp's People

Contributors

thafsi-pv 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.