Yeoman generator for Meteor and React.js views
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
collection
component
templates
test
view
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
.yo-rc.json
README.md
package.json

README.md

generator-meteor-react

Yeoman generator

Getting Started

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

npm install -g yo

Yeoman Generators

Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.

To install generator-meteor-react from npm, run:

npm install -g generator-meteor-react

Finally, initiate the generator:

meteor create myAmazingApp
cd myAmazingApp

you can delete the default .html, js & css files

yo meteor-react
sh startup.sh

To add a View:

yo meteor-react:view [yourViewName]

To add a Collection:

yo meteor-react:collection [yourCollectionName]

To add a React component:

yo meteor-react:component [yourComponentName]

Why React components with Meteor?

Because React.js is cool and worth learning

Because it's easier to port a Meteor prototype to an enterprise CMS such as Sitecore, AEM or Backbase using React components.. React.js provides a common separation of the View that can be almost dropped onto another implementation

Some example React magic comes with the default setup

You will find a sample component "Topnav" comes with the default setup. This is just to demonstrate how a basic react component is set up and implemented. It's directly wired up to pull from the 'navigation' collection. And is added via the master layout.

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.

If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.

License

MIT

meteor-react

Yeoman generator for Meteor and React.js views