Ruby on Rails Thursday, August 22, 2019

Thanks.

I found a portfolio app that runs on react.  Got it working locally, unfortunately can't figure out how to publish it to heroku.  (  I did follow a tutorial, most tutorials don't seem to work...)



On Tuesday, August 20, 2019 at 9:54:34 AM UTC-4, Douglas Lovell wrote:
Here is an open source project on GitHub that combines React with Rails:


It takes a monorepo approach, with the front-end JS code next to the back-end Rails. To integrate, it simply has the JS build (uses Parcel) output the transpiled, bundled javascript into the Rails assets/javascripts directory. It names the output without a fingerprint, because Rails asset pipeline will add one.

The idea was to keep it as simple as it can possibly be and have it work cleanly. It doesn't use the react-rails gem. It doesn't use separate repositories or servers. All of these gymnastics for scale are aspirational. Few projects ever reach the point of scale, especially when bogged-down in the gymnastics.

On Monday, August 19, 2019 at 3:48:03 PM UTC-3, Joe Guerra wrote:
I'm going to rebuild my rails app and maybe add react on the front end.    I forget which version of rails I'm using, but I guess it would be best to start over with the latest.

Does anyone know of boilerplate or template that would include starting an app with the react & rails?  (maybe some other useful gems as well)

Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/25316f42-6b48-4a57-b57c-27b4adbd9447%40googlegroups.com.

No comments:

Post a Comment