Skip to content

unclePRO/task-manager-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager API

A simple, lightweight RESTful API for managing tasks, built using Node.js, Express.js, and MongoDB.

Features

  • Create new tasks
  • Read all tasks or fetch a specific task by its ID
  • Update existing task details or completion status
  • Delete tasks no longer needed

Tech Stack

  • Runtime Environment: Node.js
  • Web Framework: Express.js
  • Database: MongoDB (via Mongoose)

Installation & Setup

  1. Clone the repository

    git clone [https://github.com/unclepro/task-manager-express.git](https://github.com/unclepro/task-manager-express.git)
    cd task-manager-express
  2. Install dependencies

    npm install
  3. Set up Environment Variables Create a .env file in the root directory of the project and add your MongoDB connection string:

    MONGO_URI=your_mongodb_connection_string_here
    PORT=3000
  4. Start the development server

    npm start

    The server should now be running on http://localhost:3000.

Standard API Endpoints

HTTP Method Endpoint Action
GET /api/v1/tasks Get all tasks
GET /api/v1/tasks/:id Get a single task by ID
POST /api/v1/tasks Create a new task
PATCH /api/v1/tasks/:id Update an existing task
DELETE /api/v1/tasks/:id Delete a task

About

A simple task manager built with express.js, mongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors