Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Add 'meteor create --react'. #182

Closed
alexsicart opened this issue Sep 19, 2017 · 13 comments
Closed

Add 'meteor create --react'. #182

alexsicart opened this issue Sep 19, 2017 · 13 comments

Comments

@alexsicart
Copy link

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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

@alexsicart
Copy link
Author

@iwojapa
Copy link

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
Copy link
Collaborator

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
Copy link

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
Copy link
Author

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

@theodorDiaconu
Copy link

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
Copy link

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
Copy link
Collaborator

@dmihal PR would be a great start.

@benjamn
Copy link
Contributor

benjamn commented Feb 4, 2019

The meteor create --react command was implemented in Meteor 1.8. Thanks everyone!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants