New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'meteor create --react'. #182

Open
alexsicart opened this Issue Sep 19, 2017 · 12 comments

Comments

Projects
None yet
9 participants
@alexsicart

alexsicart commented Sep 19, 2017

Add 'meteor create --react'.

Description: As we know, create meteor app's is amazing, but when we join React Facebook and Meteor, is the perfect combination.

Solution: Create a flag with react option, when we want to create a new meteor app.

I created this:
https://github.com/alexsicart/Create-React-Meteor-App

@abernix

This comment has been minimized.

Member

abernix commented Sep 21, 2017

Thanks for opening this, @alexsicart! This spawned from discussion in this tweet which mentions an official skeleton for React and highlighting scattered conversation in meteor/meteor#6974 and (starting at) meteor/meteor#8728 (comment) (warn: very large 1.6 release thread), though no current feature request to track the importance and hash out details.

@abernix

This comment has been minimized.

Member

abernix commented Sep 21, 2017

I believe keeping the base --react application relatively simple and, feature-wise, on parity with the Blaze version would be my initial thought. We should explore if we want --full and --bare variants and what those should include.

And some server-side rendering (SSR) pattern should likely be available in one of these variants!

@alexsicart

This comment has been minimized.

alexsicart commented Sep 24, 2017

Yes I agreee with you, simple, without authentification. Only main.js, main.html, connected to the app.js in the components folder. Displaying Hello React.

@alexsicart

This comment has been minimized.

alexsicart commented Sep 24, 2017

This afternoon I'll modify https://github.com/alexsicart/Create-React-Meteor-App, to make it more simple.

@alexsicart

This comment has been minimized.

alexsicart commented Sep 25, 2017

@iwojapa

This comment has been minimized.

iwojapa commented Oct 30, 2017

+1 for all of this, including the --bare and --full versions.

@benjamn benjamn added this to the Meteor 1.6.1 milestone Oct 30, 2017

@filipenevola

This comment has been minimized.

filipenevola commented Nov 1, 2017

Hello, do you think that we should include Apollo in this app example? Or maybe have one additional option with Apollo?

I'm working in this repo https://github.com/CodeFTW/meteor-react-latest to keep an up to date working example of Meteor + React + Apollo. Also I'm trying to put good practices in place, like using imports folder and one example of each common operation (router, mutation, query, etc).

What do you think? What is the best path to go and how can I help?

@hanimay

This comment has been minimized.

hanimay commented Nov 3, 2017

Hello,
I assumed having react command would lead to something similar or a more integrated version to this repo : https://github.com/Urigo/meteor-client-bundler.

This way we can easily benefit from HTTP/2 and CDN for our clients as well as benefiting from Webpack.

Kindly advise.

@alexsicart

This comment has been minimized.

alexsicart commented Nov 3, 2017

@filipenevola It could be a flag! Meteor + React + Apollo. Good idea!!

@jbaxleyiii jbaxleyiii referenced this issue Nov 10, 2017

Merged

Improved server rendering #9343

5 of 6 tasks complete
@theodorDiaconu

This comment has been minimized.

theodorDiaconu commented Dec 1, 2017

I think this will be a never-ending task. After a new structure is introduced, we'll need another boilerplate, then another, when a git clone REPO can be as easy as meteor create --react, maybe you will need a router, or something else. And after SSR matures you will want a --react-ssr, --react-router-ssr.

Maybe create a convention to add as topic "meteor-boilerplate" to GitHub ?
https://github.com/topics/meteor-boilerplate

@dmihal

This comment has been minimized.

dmihal commented Jul 30, 2018

Any update on this?

I'm giving a demo on Meteor + React in a month and I'd love to be able to start it with something like meteor create --react-full.

I'd be happy to put together a PR if people are supportive!

@StorytellerCZ

This comment has been minimized.

StorytellerCZ commented Aug 13, 2018

@dmihal PR would be a great start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment