Files
haushalt/module.md
Marek Lenczewski 4477b664ff update
2026-04-11 13:52:03 +02:00

2.7 KiB

Datei

Implementierungs-Schritte als Feature-Module - WIE es gebaut wird

Setup module

Backend

  • Setup Symfony ./backend

Frontend

  • Setup Vue ./frontend, router, pinia
  • App.vue - no content

App

  • Setup Kotlin ./app, navigation compose
  • MainScreen.kt - no content

Features

  • Symfony, Vue and Kotlin minimal setup, no content

Base module

Backend

  • nothing

Frontend

  • App.vue - layout: navigation, subnavigation, main area
  • router - / start page route
  • Startpage.vue - start page

App

  • MainScreen.kt - layout: navigation, subnavigation, main area
  • StartScreen.kt - start page

Features

  • Standard layout for all pages: navigation top, subnavigation below, main area
  • Start page as first instance, empty content

Task module

Backend

  • Task - Task entity
    • id, name, date, status
  • TaskStatus - Enum for task status
    • active, done
  • TaskController - Task routes
    • index, show, create, update, delete, toggle
  • TaskManager - Task CRUD
    • create, update, delete, toggle
  • TaskRepository - Default task queries
  • TaskDto - Dto for create und update task

Frontend

  • route/index.js - /tasks tasks routing
  • Task.Vue - Display all tasks
  • TaskDetail.vue - Create and edit tasks
  • api.js - API routes to symfony

Features

  • Task page
    • navigation - tasks
    • subnavigation - all tasks, new task, categories
  • Start page
    • main area - quader button to task page
  • Task page
    • main area - list all tasks, each task has name, status in badge, edit button, onclick toggle task status
  • Task detal page
    • main area -

Category module

Backend

  • Category - Category entity
    • id, name, color
  • Task - Task entity
    • category
  • CategoryController - Category routes
    • index, show, create, update, delete
  • TaskSchemaManager - TaskSchema CRUD
  • TaskSchemaRepository - TaskSchema queries

TaskSchema module

  • TaskSchema - TaskSchema entity
    • id, name, status, category, start, end, date
    • type(single, repeat, custom),
    • repeat(daily, weekly, monthly, yearly)
    • custom(days)
  • TaskSchemaController - TaskSchema routes
    • index, show, create, update, delete
  • TaskSchemaManager - TaskSchema CRUD
    • create, update, delete
  • TaskSchemaRepository - TaskSchema queries
  • TaskGenerator - Create tasks from schema
    • generate

Item module

  • Item - Item entity
  • ItemController - Item routes
  • ItemManager - Item CRUD
  • ItemRepository - Item queries
  • UnitEnum - Unit for Item

Meal module

  • Meal - Meal entity
  • MealController - Meal routes
  • MealManager - Meal CRUD
  • MealRepository - Meal queries

Shopping module

  • ShoppingList - ShoppingList entity
  • ShoppingListController - ShoppingList routes
  • ShoppingListManager - ShoppingList CRUD
  • ShoppingListRepository - ShoppingList queries