GithubHelp home page GithubHelp logo

duckofthebooboo / task-management-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 173 KB

A web-based task management system that allows users to create, update, and track their tasks. Users can sign up, log in, and manage their tasks in an organized manner.

JavaScript 65.75% CSS 21.90% EJS 11.95% Dockerfile 0.40%

task-management-system's Introduction

Task Management System

Installation

Docker


  1. Download the Dockerfile and docker-compose.yaml
  2. Execute docker compose up -d (Docker compose plugin) or docker-compose up -d (docker compose standalone)
  3. Access the web using port 8080 or the port you've specified

Api Specification


Sign Up

  • Method: POST
  • Endpoint: /api/auth/signup
  • Headers:
    • Content-Type: application/json

Body:

{
    "username": "username",
    "password": "password"
}

Response:

{
    "status": "success/fail",
    "message": "User successfully created./?"
}

Log In

  • Method: POST
  • Endpoint: /api/auth/login
  • Headers:
    • Content-Type: application/json

Body:

{
    "username": "username",
    "password": "password"
}

Response

{
    "status": "success/fail",
    "message": "Successfully verified the credentials/?"
}

Log Out

  • Method: POST
  • Endpoint: /api/auth/login
  • Headers:
    • Authorization: Bearer ${token}

Response

{
    "status": "success/?",
    "message": "Successfully logged out"
}

Verify Token

  • Method: POST
  • Headers:
    • Authorization: Bearer (token)
  • Endpoint: /api/verifyToken
{
    "status": "success/fail",
    "message": "Token is valid/Incorrect or expired token/No token provided"
}

Get all tasks for specific user

  • Method: GET
  • Headers:
    • Authorization: Bearer (token)
  • Endpoint: /api/task
{
    "status": "success/fail",
    "message": "/?",
    "data": [
        {
            "task_id": "(task_id)",
            "description": "task description",
            "status": "Not Completed/Done",
            "createdAt": "date of created",
            "updatedAt": "date of updated",
            "UserId": "(user_id)"
        }
    ]
}

Create a task for specific user

  • Method: POST
  • Headers:
    • Authorization: Bearer (token)
    • Content-Type: application/json
  • Endpoint: /api/task

Body

{
    "description": "(task description)"
}

Response

{
    "status": "success/fail",
    "message": "Successfully created task/?"
}

Update a task for specific user

  • Method: PUT
  • Headers:
    • Authorization: Bearer (token)
    • Content-Type: application/json
  • Endpoint: /api/task

Body

{
    "taskId": "(task id)",
    "description": "new description",
    "status": "new status (In Progress/done)"
}

Response

{
    "status": "success/fail",
    "message": "Successfully updated the task/Unable to update the task: (reason)"
}

Delete a task for specific user

  • Method: DELETE
  • Headers:
    • Authorization: Bearer (token)
    • Content-Type: application/json
  • Endpoint: /api/task

Body

{
    "taskId": "(task id)"
}

Response

{
    "status": "success/fail",
    "message": "Successfully deleted the task/Unable to delete task (reason)"
}

task-management-system's People

Contributors

duckofthebooboo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.