Hi,
I’ve been playing with the new React and Meteor integration and created a boilerplate app extracted from my bigger app.
It can be found here: https://github.com/optilude/meteor-react-example
It demonstrates:
- Using the
react
package to integrate Meteor and React - Fetching data from reactive Meteor data sources using the
ReactMeteorData
mixin and thegetMeteorData()
method - Routing using
ReactRouter
- A basic UI using
Twitter Bootstrap
andReactBootstrap
- Login, change password, enrollment emails and user management using the Meteor
accounts system - ES6 syntax using the
Babel
transpiler (.es6.js
files) and ReactJS’
transpiler (.jsx
files) - Tests using
Velocity
. - Typed collections / validation using
aldeed:collection2
. - Client- and server-side dependencies loaded from NPM and served with
browserify
. - JSHint configuration to allow editors like Sublime Text or Atom to warn
about potential problems early
I’d be grateful for any feedback on the patterns explored here.
Martin