Meteor kitchen now can build React application (from existing input .json file - it’s backward compatible). Not fully implemented yet, but simple applications can be built (like example-minimal, example-subpages and example-accounts).
Thank you for the amazing code generator. I like it a lot. I have a few questions based on another post of mine:
(I’ve taken a look at the code generated but would love more details than I can see)
I guess by “default” Meteor doesn’t work with a typical RESTful API methodology. Can you explain your thoughts on this? I guess you are generating client side routing (which I assume it typical in a standard Meteor application).
It looks like you have generated client side validations. I guess this goes to my question #1. So if I build in a RESTFul API I should probably either move (or duplicate) that those validations on the server…right?
It looks like your list view (datatable) is hand made (not a package). What are your thoughts on generating in a more robust datatable? For example I like autocomplete on the search.
Again Meteor Kitchen is quite impressive and I’m just trying to wrap my head around what it does and how I typically would have an application.
You can generate SimpleSchema (see application object’s use_collection2 member. It will do server-side validation for you.
“DataView” component is not a “best practice” (one of first components I made for meteor-kitchen while I was still learning Meteor), but good thing with it (compared to packaged component) is that you have code for each dataview and you can customise it manually. However, plan is to refactor old components (also “form” component) and to add React versions too.
I’m currently working on a new (and this time useful) GUI. I will publish sneak-peek video tomorrow, and as soon as I publish new GUI, plan is to continue improving generated code for Blaze and implement missing components for React.
This looks great. Since you are certainly more familiar with “standards” in Meteor (directory structure, patterns, etc) is there anything in the code you currently generate that you would like to improve on or change? i.e., I see different patterns for folder structure that people suggest and I see different routers used (iron vs flow) in various github projects.
Also is there a project in github that was started with the generator and then built upon to a complete application?
One more thing: no matter how you organize your directories, it will work - you just need to take attention to file loading order.
I am freelancer and I was working on many projects - in every project directory structure was different. It’s OK, principle is the same. Problem is routine - e.g. you are trying to find router.js here, but it is somewhere else… eats some time.
P.S. I got plans to add “generator hooks” to meteor-kitchen, so it will execute external .js file for each action it perfoms giving you chance to override default actions. For example “onDirectoryStructure” event will be executed in moment when kitchen wants to create directories giving you chance to override defaults, so it will be much more “customisable”. But, that will be after I publish latest GUI and implement all react components…
Hey! can you tell us when new Meteor Kitchen will be announced? I see that you haven’t given any updates on whats going on since the last month. I am eager to meet new version.
@bookbipii sorry, I’m busy with my regular job and private things, so my wishes to launch new gui from june 1st didn’t work. My next “wish” is from aug 1st (and that’s also my birthday ).
But, kitchen is not sleeping, I added some important features into CLI (wil be published in next few days) like: it detects manualy edited files on next run so it asks do yo you want to overwrite (with plan to add option to merge), removes garbage files e.g. if you delete or rename some page, new CLI removes that files (old CLI just leaves “garbage”). And more…
Also, a lot of features are added into new GUI since I recorded video. And I am talking with company who will possibly offer hosting for apps generated in the cloud (similar to now dead “meteorpad”).
You can expect really cool tool for rapid building meteor apps in the cloud, so stay tuned!
When I started adding “generate react code” feature there was no react router yet (or I didn’t know for it), so it is using FlowRouter. sometimes technology borns and dies before I finish implementing it But definitely react router is must have, so it’s on my roadmap. I cannot promise when.
Hi perak, your Kitchen tool is fantastic!
I am well on my way to planning out the feature list for our web application and once published will be regularly donating to you for your efforts.
I do need to ask you for guidance/clarification on two points that are puzzling me, I have tried various methods before asking you, but i’m not getting anywhere with it
I welcome you to look at my repository “fireball” in my Kitchen account “magoomby”:
In databases, the ‘events’ collection, I have the fields ‘disciplines’ and ‘state’, each of which is populated by referencing the ‘lookup’ collection by key. I have a query called ‘lookup_single’ that is used by both fields and I use Kitchen’s ‘lookup query params’ to specify 'keys':'discipline' and 'keys':'states' . PROBLEM: when I build the app, both of the fields are populated with disciplines… it’s using the first query for both SELECT fields. What am I doing wrong?
With these same SELECT fields, I wanted to utilise the display helper to resolve the value back into the title of the selected items. PROBLEM: When I enter in a helper name for one of the fields in the collection… none of the ‘helper’ code blocks that I put the function in resolve/found. Where do I put a helper function for a collection field display helper?
I appreciate your time and am looking forward to contributing donations, help or code where possible.
Sean.
It’s hard to answer/solve issue this way. Please give me example code (example .json input file, or give me link to the project if you are using kitchen GUI), so I can build the app and check your input file/generated output.
In latest update, one very important feature is implemented (at last) - you can manually modify generated code and next execution of meteor-kitchen will not overwrite the code. Kitchen executes on a separate branch and generated code is now git-merged with your branch, so your manual modifications are not overwritten. And entire process is automatic and transparent for you.
So… now meteor-kitchen behaves just like any other developer from your team with one small difference: he (or she?) is a robot!
It’s my first time posting here. I am a huge fan of Meteor and Meteor Kitchen.
Looks like www.meteorkitchen.com is down. Is that intentional? Is there a way to host my own Kitchen GUI? I did not find the recent version on git, just the old one. One that note, ever thought of making MK open source?