kitchen-examples icon indicating copy to clipboard operation
kitchen-examples copied to clipboard

Array of Objects Nested Objects Crud Example

Open rjmoggach opened this issue 10 years ago • 10 comments

The invoice example is great and I'd love to see a deeper example that shows how to best implement joins using an array of objects, crud, and nested objects or arrays...

Good use cases for an example might be a movie credits app, a recipe app, an orgchart app, user groups with group managers who can manage row level permissions... you name it. Lots of great ideas but you're the expert. Great work. So easy to get going with this.

rjmoggach avatar Jan 20 '15 00:01 rjmoggach

Thanks :)

I am being busy last few months, but you can expect new examples soon.

Also, if you want to help, you can create screencast video showing and explaining how to create simple app ("minimal" example?) with meteor kitchen - I'l put that video into home page and add you into "hall of fame". That's 'cause English is not my primary language and it will sound stupid if I do that, so I need somebody's help :)

perak avatar Jan 20 '15 01:01 perak

Here you go! http://youtu.be/9k5YRxjP58Y

rjmoggach avatar Jan 21 '15 03:01 rjmoggach

Hey Robert, that's awesome! Exactly what I imagined. Thank you very much! I'l put video to kitchen site today!

:+1: :+1: :+1:

perak avatar Jan 21 '15 10:01 perak

OK @robmoggach you are famous now :)

I put video on top of "getting started" page:

http://www.meteorkitchen.com/getting_started

And added you to contributors list:

http://www.meteorkitchen.com/contribute

Thank you very much! :)

perak avatar Jan 21 '15 21:01 perak

I've done a quick mockup of an example that would be well received - obviously use the bootswatch themes out of the box instead of trying to build to this mockup. The features required should showcase a lot of the MK functionality. If it's not immediately obvious... it's a notes app. Has private and public areas and uses the account system. Notes are stored in folders. Folders can have subfolders. Notes have versions and can be public or private. Live markdown preview on right.

notes-example-app

rjmoggach avatar Feb 09 '15 03:02 rjmoggach

I believe that example should answer a lot of questions that aren't answered in the docs so well worth it.

rjmoggach avatar Feb 09 '15 03:02 rjmoggach

Hi Robert,

Good idea.

Is that screenshot from real app or you drew it?

About private notes: where other users can find other user's public notes? (where are public notes displayed?). In some directory called "public", or something?

I think it's relatively easy to be created with "kitchen", so I'l try something for weekend (I will be busy this week).

perak avatar Feb 09 '15 09:02 perak

(BTW, we can also communicate via e-mail)

perak avatar Feb 09 '15 09:02 perak

Loving this conversation, I will iterate back to what @robmoggach said earlier regarding have group with subgroups and flocks. here is what I have to make, any suggestion will be great. You have a church with members, each member belong to a group and the group belong to a flock. i want each members to be able to message individual within there group, as well as there flock. Any suggestion how to lay this out with MK?

sireskay avatar Feb 20 '15 22:02 sireskay

I don't know how your program is organized, but it looks like you need to filter what particular user can see as his contacts - server side. So, if I understand well, user's contacts are people from his group and his flock - that should be done in publish method.

Now while writing this text, I see that you cannot just subscribe to custom, manually written publish code. MK's "query" will generate code for publish & subscribe, but limited to only simple return from find() function. You cannot write custom publication and instruct MK just to subscribe to it client side. This is actually functionality that I should add to MK - I'l create new issue for this.

Thanks!

perak avatar Feb 20 '15 23:02 perak