AdamBrodzinski / meteor-generate

Meteor Generate - A Rails Inspired File Generator for Meteor
MIT License
65 stars 2 forks source link

Demo links #5

Open newswim opened 9 years ago

newswim commented 9 years ago

None of the examples seem to be linked from readme.

AdamBrodzinski commented 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!

newswim commented 9 years ago

Nice! I'll check back :+1:

AdamBrodzinski commented 9 years ago

@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!

Morganjackson commented 9 years ago

Cheers Adam!

gb96 commented 9 years ago

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?

AdamBrodzinski commented 9 years ago

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.