Open newswim opened 9 years ago
Oh... shoot, I forgot to re generate those. Thanks @newswim :beers: I'll generate a new example project and push tomorrow. Also hoping to merge in the models branch tomorrow as well!
Nice! I'll check back :+1:
@newswim
alrighty... i've pushed the example app to the models branch, you can find it here:
https://github.com/AdamBrodzinski/meteor-generate/tree/models/example
It still needs some documentation but that should be cleaned up soon. I also added a handlebars each helper on /posts/
to render documents and changed the default root route to /posts/
. You can insert post documents by calling Post.create({title: 'foo'})
on the client or server. See the both/models dir for more info.
Currently there is no scaffold command so to get it to this point I ran:
mgen create example
cd example
dmgen controller posts
dmgen collection posts
dmgen publish posts:post
dmgen publish posts:posts
meteor
Let me know what you think!
Cheers Adam!
The README on master refers in a couple of places to https://github.com/AdamBrodzinski/meteor-generate/tree/master/examples/blog which doesn't exist. There is an "examples" in the model branch... should I be using models branch instead of master?
Oh good catch. It looks like I started updating the readme with the idea that the models branch would be merged in right away. That was the plan at least :laughing: The main reason I took out the examples folder was that it was getting out of date and didn't have an automated build process to generate the example.
The models branch is ready to go with the exception of the readme. I should have time this week to finish re-writing the readme (famous last words!) and then it will be ready to merge into master/NPM. Feel free to use it though! You just have to clone it down and then instead of typing mgen, run the command with something like ~/meteor-generate/bin/mgen model post
or what I do is alias the source bin file to dmgen
so I can just run dmgen controller posts
to run the checkedout version.
None of the examples seem to be linked from readme.