/ffx-meteor-react-boilerplate

Meteor 1.3 + React boilerplate and example app

Primary LanguageJavaScript

Meteor 1.3 + React Boilerplate

(and sample project)

Purpose

The goal of this boilerplate is twofold:

  1. To provide a good starting point as a scaffold for new Meteor/React projects. This boilerplate will continue to evolve as Meteor and React continue to change and mature.
  2. To also serve as a learning resource by offering an example project.

Installation

Clone this repository, then run:

$ npm install

This will install NPM packages and update the Meteor packages used in the boilerplate.

If you'd like to examine and mess around with the example project (complete with comments), run:

$ npm run example

Your starting point for the code walkthrough should start at /client/routes.jsx. The code is heavily commented and will guide you through the entire app. Use npm run exit to get out of the example (same as git checkout -f master).

Once you're ready to get started with your own project, make sure you're in the master branch and run:

$ npm run scaffold

which will remove the .git folder and this README.md.

Exploring the Example Project

The example project shows all the basics of React, Redux and Thunks working together with Meteor. It's a separate branch of the project, so just switch branch to see it.

Explanations can be found in the comments of the code, so check there. Your starting point should be /client/routes.jsx. From that point, comments will guide you through the rest of the application.

Future Ideas

As I work on projects, I'll keep exploring the idea of putting all features into their own respective folders, and so this boilerplate will likely change as I discover better ways to structure things.

If you have any questions, please create an issue in GitHub. Thanks!