Giter VIP home page Giter VIP logo

trello-mini-clone-react's Introduction

Tables

  • board

    • id (primary key)
    • name
    • description
  • stage

    • id (primary key)
    • board_id (foreign key to the board table)
    • title
    • order
  • task

    • id (primary key)
    • board_id (foreign key to the board table)
    • stage_id (foreign key to the stage table)
    • title
    • description
    • due_date
    • assignee_id (foreign key to the user table)
  • comment

    • id (primary key)
    • task_id (foreign key to the task table)
    • user_id (foreign key to the user table)
    • content
    • created_at

API endpoints

Boards

  • GET /boards
  • POST /boards
  • GET /boards/:boardId
  • PUT /boards/:boardId
  • DELETE /boards/:boardId

Stages

  • POST /boards/:boardId/stages
  • GET /boards/:boardId/stages
  • GET /boards/:boardId/stages/:stageId
  • PUT /boards/:boardId/stages/:stageId
  • DELETE /boards/:boardId/stages/:stageId

Tasks

  • POST /boards/:boardId/tasks
  • GET /boards/:boardId/tasks
  • GET /boards/:boardId/tasks/:taskId
  • PUT /boards/:boardId/tasks/:taskId
  • DELETE /boards/:boardId/tasks/:taskId

Comments

  • POST /tasks/:taskId/comments

  • GET /tasks/:taskId/comments

  • GET /tasks/:taskId/comments/:commentId

  • PUT /tasks/:taskId/comments/:commentId

  • DELETE /tasks/:taskId/comments/:commentId

    Error handling:

I would use a combination of the following error handling strategies:

  • HTTP status codes: I would use standard HTTP status codes to indicate the type of error that occurred. For example, I would use a 400 Bad Request status code if the user's request was invalid, and a 500 Internal Server Error status code if an unexpected error occurred.
  • Error messages: I would include a descriptive error message in the response body to help the user understand what went wrong.
  • Logging: I would log all errors to a database or file so that I can track down and resolve the root cause of the problems.

trello-mini-clone-react's People

Contributors

sasmit-shubham 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.