Giter VIP home page Giter VIP logo

basic-todo-list's Introduction

Todo React Application using React JS

What is the use of this Repo

This Project is a Todo React Application which demonstrates the following

  1. Creating a Component in React
  2. Making HTTP calls
  3. Communicating between parent and child component
  4. Using Bootstrap along with React
  5. Using React Hook

This project template can be utilized to develop further

Application URL to download

Prerequisites

Install Node JS

Refer to https://nodejs.org/en/ to install nodejs

Install create-react-app

Install create-react-app npm package . This will help to easily run the project and also build the source files easily. Use the following command to install create-react-app

npx create-react-app

Cloning and Running the Application in local

Clone the project into local

client

Install all the npm packages. Go into the project folder and type the following command to install all npm packages

npm install
npm install bootstrap
npm install font-awesome

In order to run the application Type the following command

npm start

server

Install the following for server configuration

npm i express cors
npm i body-parser
npm i nodemon

In order to run the application Type the following command

npm start

or

nodemon server.js

The Application Runs on localhost:8000

Application design

Components

  1. App.js : Displays whole project.
  2. Main.js : Todo List, update a list item, delete a list item and update status are rendered in this component.
  3. TodoList.js : This component displays the todo list items and also it has delete and update status. The data is fetched from json.
  4. AddTask.js : This component add new task to the todo list.
  5. UpdateTask.js : This component update a task in todo list.

HTTP client

To make HTTP Calls axios library is used

Endpoints in REST API

We will implement following endpoints to our REST API.

Http method and endpoints | Functionality GET /api/todo | Get all todo list POST /api/todo | Add new task DELETE /api/todo/delete/:id | Delete Task from todo list PUT /api/todo/:id" | Update Task by id in todo list PUT /api/todo/updateStatus/:id | Update Status by id in todo list

basic-todo-list's People

Contributors

rajasalan avatar

Watchers

James Cloos avatar  avatar

Forkers

sumancoding

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.