Skip to content

El3sawy27/Todo-CRUD-API-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo-CRUD-API-

A basic CRUD API for a todo list

Description

This project is a simple CRUD (Create, Read, Update, Delete) API for managing a Todo list. It uses Node.js and Express for the server, and MongoDB with Mongoose for the database.

Installation

  1. Clone the repository:

    git clone <repository-url>
    
  2. Navigate to the project directory:

    cd Todo_API
    
  3. Install the dependencies:

    npm install
    

Usage

  1. Start the server:

    npm run start
    
  2. The API will be running on http://localhost:3000. You can use tools like Postman or CURL to interact with the API endpoints.

API Endpoints

  • GET /task - Retrieve all todos
  • POST /task - Create a new todo
  • GET /task/:id - Retrieve a specific todo by ID
  • PUT /task/:id - Update a specific todo by ID
  • DELETE /task/:id - Delete a specific todo by ID

Dependencies

Author

Mohamed Elesawy

License

This project is not licensed.

About

A basic CRUD API for a todo list

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published