Giter Site home page Giter Site logo

mern-todo-app's Introduction

MERN Todo List Project

This is a simple Todo List web application built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. Users can add, delete, and mark tasks as completed.

Features

  • Add Task: Users can add new tasks to the todo list by entering a task name and clicking the "Add" button.
  • Delete Task: Users can delete tasks by clicking on the delete button next to each task.
  • Mark Task as Completed: Users can mark tasks as completed by clicking on a checkbox next to each task.

Technologies Used

  • MongoDB: Database to store the todo tasks.
  • Express.js: Backend framework to handle HTTP requests and responses.
  • React.js: Frontend library to build the user interface.
  • Node.js: JavaScript runtime environment to run server-side code.
  • Axios: HTTP client for making requests to the backend API.
  • Bootstrap: CSS framework for styling the application.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/yourusername/mern-todo-list.git
    
  2. Navigate to the project directory:

    cd mern-todo-list
    
  3. Install dependencies:

    npm install
    
  4. Start the backend server:

    npm start
    
  5. Navigate to the client directory:

    cd client
    
  6. Install client dependencies:

    npm install
    
  7. Start the React development server:

    npm start
    
  8. Open your web browser and go to http://localhost:3000 to view the todo list application.

API Endpoints

  • GET /todo: Get all todo tasks.
  • POST /todo/new: Add a new todo task.
  • DELETE /todo/delete/:id: Delete a todo task by ID.
  • PUT /todo/update/:id: Update a todo task (e.g., mark as completed) by ID.

Project Structure

  • server.js: Entry point for the backend server.
  • routes/todo.js: Defines routes for handling todo tasks CRUD operations.
  • models/Todo.js: Defines the MongoDB Todo schema.
  • client/src/App.js: Main component for the React frontend.
  • client/src/components/TodoItem.js: Component to render individual todo items.
  • client/src/App.css: Styles for the React frontend.

Contributors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

mern-todo-app's People

Contributors

yukiodesigns 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.