User stories;
- add a todo
- see all todos
- update todos
- delete one
- clear display
Dev plan:
handler | controller | model | view | |
---|---|---|---|---|
1 | add_todo; read from the UI & call the controller | add_todo; add new todo to the model | create; save the new todo | |
2 | read_all; call the controller | read_all; read all from the model, call the view to display everything | read_all; return everything in memory | display_all; display all items to the UI |
3 | update_one; read old item and new value from UI. Call the controller | update_one; call the model to update the correct entry, call view to display new todo list | update_one; updates the correct entry in memory | |
4 | delete_one; reads user input and calls the controller | delete_one; calls the model to delete said item, displays to todo list | delete_one; deletes selected item from memory | |
5 | clear_display; calls controller | clear_display; calls view | clear_display; clears the display |
(there is no L in this app, it's all about state and not logic)