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.
- 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.
- 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.
-
Clone the repository:
git clone https://github.com/raviishekhawat/To-Do-Backend.git
-
Navigate to the project directory:
cd Backend
-
Install the required dependencies:
npm install
-
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)