From 63b3e936a30088c6eebb6cd4b8db3d1e34bf4b44 Mon Sep 17 00:00:00 2001 From: Alexis Drai Date: Mon, 12 Jun 2023 09:53:25 +0200 Subject: [PATCH] :memo: Add readme --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9370d4c --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +# Oh the things you'll do + +## Model + +The model will include Projects and Tasks. A Project owns a collection of Tasks (but Tasks can exist outside of projects too), +and a Project has a title. A Task has a title, an optional description, and an integer priority level between 0 and 3, zero being critical. + +```mermaid +classDiagram + class Project { + +String title + +List tasks + } + class Task { + +String title + +String description + +int priority + } + + Project --> "*" Task + +``` + +## View + +There will be a collection of projects on the home page. Clicking on a project will navigate the user to the project detail page, +where they will find the project title on top and a collection of tasks. Clicking on a task will navigate the user to the task detail page, +where they will find the task title, the task description if any, and the task priority represented with a label of a certain color next to +the words 'priority X' where X is the priority level. + +```mermaid +graph TB + A[Home Page] --> B[Project Detail Page] + B --> C[Task Detail Page] +``` +