To-Do API

This is a simple backend API built using Node.js, Express, and CORS to manage a list of tasks. The API supports creating, reading, updating, and deleting tasks for a basic to-do application.

Features

  • Create a new task: Add a task with content and track its completion status.
  • View all tasks: Retrieve a list of all tasks.
  • Update an existing task: Modify the content and completion status of a task.
  • Delete a task: Remove a task by its ID.
  • CORS enabled: The backend supports cross-origin requests from the frontend.

Technologies Used

  • Node.js: A JavaScript runtime for the server-side.
  • Express.js: A web framework for Node.js.
  • CORS: Middleware for handling Cross-Origin Resource Sharing.

Installation

  1. Clone the repository:

    git clone https://github.com/raviishekhawat/To-Do-Backend.git
    
  2. Navigate to the project directory:

    cd Backend
    
  3. Install the required dependencies:

    npm install
  4. Start the server:

     node server.js
  • By default, the project runs on port 5000. If you need to run the application on a different port, you can change it by Environment Variables (Recommended)