Skip to content

pankajmokashi/manage-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Task Management Application

Prerequisites

  • Node.js and npm installed
  • MongoDB Atlas account and cluster setup
  • Git installed

Backend Setup

  1. Clone the repository
git clone https://github.com/pankajmokashi/manage-tasks.git
cd manage-tasks
  1. Navigate to the backend directory
cd task-management-backend
  1. Install dependencies
npm install
  1. Create a .env file in the backend directory
touch .env
  1. Add the following environment variables to the .env file
MONGODB_URI=your_mongodb_atlas_connection_string
  1. Start the backend server
npm start

Frontend Setup

  1. Navigate to the frontend directory
cd ../task-management
  1. Install dependencies
npm install
  1. Start the frontend server
npm start

API Endpoints

Authentication

  • Login: POST /login

    • Request body: { "username": "your_username", "password": "your_password" }
    • Response: { "token": "your_jwt_token" }
  • Register: POST /register

    • Request body: { "username": "your_username", "password": "your_password" }
    • Response: { "message": "User registered successfully" }

Tasks

  • Get all tasks: GET /tasks

    • Response: [ { "id": "task_id", "title": "task_title", "description": "task_description" }, ... ]
  • Get task by ID: GET /tasks/:id

    • Response: { "id": "task_id", "title": "task_title", "description": "task_description" }
  • Create task: POST /tasks

    • Request body: { "title": "task_title", "description": "task_description" }
    • Response: { "id": "task_id", "title": "task_title", "description": "task_description" }
  • Update task: PUT /tasks/:id

    • Request body: { "title": "task_title", "description": "task_description" }
    • Response: { "id": "task_id", "title": "task_title", "description": "task_description" }
  • Delete task: DELETE /tasks/:id

    • Response: { "message": "Task deleted successfully" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published