Skip to content

This is a Todo application built with Express.js and MongoDB. It provides a RESTful API for managing tasks, including creating, reading, updating, and deleting tasks.

Notifications You must be signed in to change notification settings

AbdulrahmanBaiasy/express-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Todo App

License: MIT Express Docker

This is a Todo application built with Express.js and MongoDB. It provides a RESTful API for managing tasks, including creating, reading, updating, and deleting tasks.

Getting Started

Prerequisites

  • Node.js and npm installed on your machine
  • MongoDB running locally or in a Docker container
  • Docker (optional, for using Docker Compose)

Installation

  1. Clone the repository:
  git clone https://github.com/AbdulrahmanBaiasy/express-todo.git
  cd express-todo
  1. Install the dependencies:
  npm install
  1. Set up the MongoDB database.

    You can either run MongoDB locally or use Docker Compose: Using Docker Compose:

  docker-compose up
  1. Run the application:
  npm run start

API Endpoints

The application provides the following API endpoints:

  • GET /tasks: Retrieves all tasks.

  • POST /tasks: Creates a new task.

  • PUT /tasks/: Updates an existing task by ID.

  • DELETE /tasks/: Deletes a task by ID.

Project Structure

├─ models/ │ └─ task.js ├─node_modules/ (ignored) ├─ routes/ │ └─ taskRoutes.js ├─ .gitignore ├─ app.js ├─ docker-compose.yml ├─ package-lock.json ├─ package.json └─ readme.md

License

This script is provided under the MIT License. Feel free to use, modify, and distribute it as needed.

About

This is a Todo application built with Express.js and MongoDB. It provides a RESTful API for managing tasks, including creating, reading, updating, and deleting tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published