-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ShoppingList): multiple refactors
Showing
33 changed files
with
1,413 additions
and
1,428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,41 @@ | ||
# dont_forget | ||
Self hosted shopping list | ||
|
||
|
||
|
||
|
||
A listgroup (type of store) is made of up lists (store): Grocery Store | ||
A category is a grouping of items are are associated to a list group | ||
An item is associated to a list group and can customize the following values per list | ||
stocked here | ||
category | ||
purchase count | ||
note | ||
|
||
|
||
ListGroup | ||
id | ||
name | ||
|
||
List | ||
id | ||
name | ||
ListGroup(s) | ||
categories | ||
|
||
Category | ||
id | ||
Name | ||
ListGroup(s) | ||
|
||
|
||
Item | ||
id | ||
Name | ||
plural name | ||
listGroup(s) | ||
photo | ||
quantity | ||
category | ||
Note | ||
purchase_count | ||
|
||
ListItem | ||
id | ||
quantity | ||
Item | ||
List | ||
active | ||
completed | ||
|
||
Self hosted shopping list | ||
|
||
## Data Structure | ||
|
||
- A `ListGroup` (type of store), ex: Grocery, is made up of invidiual `List` objects (store), ex: Kroger | ||
- A `Category` is a grouping of `Item` objects associated to a `ListGroup`, ex: Produce | ||
- An `Item` is a object that is associated to a `Category`, ex: Bananas | ||
- A `UnitOfMeasure` is used to determine the typical measurement for an `Item`, ex: Pound | ||
- A `ListItem` is an item associated to a `ListGroup` and can customize the following values per `List` | ||
- stocked here | ||
- category | ||
- purchase count | ||
- note | ||
|
||
## API Endpoints | ||
|
||
- Model CRUD Endpoints | ||
- ShoppingListAGroup | ||
- ShoppingList | ||
- Category | ||
- UnitOfMeasure | ||
- Item | ||
#- ListItem | ||
- ListCustomization | ||
- Users | ||
- Function Endpoints | ||
|
||
- Add item to list group | ||
- Create list customization object it not present | ||
- create ListItem for each list in shopping list group | ||
- Mark item completed | ||
|
||
- update `completed` in `ListItem` object for each list in shopping list group | ||
- increment purchase count in list customization object | ||
|
||
- Remove item from list group | ||
- update `active` in `ListItem` object | ||
|
||
# https://github.com/suren-atoyan/react-pwa?tab=readme-ov-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.