I’ve just finished putting together my Meteor/React boilerplate, and wanted to share it publicly:
- Clone it
npm run scaffold
There’s also an example app (for learning purposes!) which you can get to by running
npm run example. Running
npm run exit will take you back to the boilerplate.
My brain’s been a bit scrambled this past week due to juggling too much stuff, so I apologize if anything in the boilerplate is broken or doesn’t make sense! Comments, questions, and feedback are welcome—just please open an issue on GitHub.
I’ve done my best to settle on a middle ground between bleeding edge and a “safe place.” A few things that are missing, or of note:
- No testing set up in the boilerplate: because I’m not really sure which direction to go with this yet, and I’m kinda waiting to see what the Meteor Guide will officially recommend for React.
- I’ve gone with Astronomy instead of SimpleSchema. Both are great packages, but for me personally, Astronomy just feels right.
I’m also toying with the idea of structuring apps by putting features in their own folders, to make it easier to find things. I’m not sure how this’ll work out in practice, so the boilerplate will definitely be updated as I come up with better ways to do things.
Hope it helps!
The boilerplate is now opinionated with regards to unit testing React components. I’ve gone with Enzyme due to its simplicity compared to other options I considered.