react-on-rails
FriendlyId
Our great sponsors
react-on-rails | FriendlyId | |
---|---|---|
9 | 6 | |
5,055 | 6,093 | |
0.5% | - | |
7.3 | 6.3 | |
1 day ago | 3 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-on-rails
-
Considering moving from NextJS to Rails
You should take a look at https://github.com/shakacode/react_on_rails. I created that repo back in 2015 and it's still going strong. Popmenu.com uses it and we've got 5,000 restaurant chains on the Rails monolith and huge traffic and transaction volume. Check out the html source of a popmenu site, like https://110grill.com. You'll see react-on-rails in the source.
-
Spent the past week learning Stimulus and Hotwire - you don't need it, you can do the same thing with jQuery
It's me, Justin, the guy the started React on Rails and React on Rails Pro many years ago! I'll be following this thread!
-
Best project setup for Rails+React with "remember me" feature
The problem is I have no idea how to implement the "remember me" feature in that gem without just making the tokens not refresh for a very long time (I think that would be a security concern). So then I looked more into react_on_rails to just use sessions with Devise as a normal rails app, but I don't know if I'll be able to deploy that on AWS because of the changes I have to do to the webpacker/webpack config to allow for a better folder structure. I've never done that so I don't know if there may be any issues.
-
Frontend based access control?
I have a production level Ruby on Rails app that is slowly transitioning from pure Rails with JS sprinkles to a Rails backend and React frontend kind of situation using React on Rails.
- How to create a project with both .erb and react? Do I use webpack=react?
-
Does anyone know a way to make a React with Rails application SEO friendly?
https://github.com/shakacode/react_on_rails - It was last updated 2 months ago & can do prerendering. I'm not sure why more people aren't suggesting this.
-
React Frontend vs Hotwire
https://github.com/shakacode/react_on_rails use this instead. It's maintained and preferred nowadays
- Hotwire: the new evolution of Turbolinks from Basecamp
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
React on Rails is an integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance. 4,558 stars by now
FriendlyId
-
Sqids – Generate Short Unique IDs from Numbers
On a side note, "Sqids ... is an open-source library that lets you generate YouTube-looking IDs from numbers.", "The main use of Sqids is purely visual."
If the purpose of it is to give a friendlier url / id, who not use something like friendly_id instead? (http://norman.github.io/friendly_id).
The url is readable and searchable through the history.
I would much rather prefer people using "www.website.com/channel/video/a-dog-walking" instead of "www.website.com/channel/video/3cXv8c".
-
How to ensure params are correct in URL after deleting a record?
Take a look at https://github.com/norman/friendly_id for a good gem to implement them.
-
replacing id with slug in routes.rb
Check out the friendly_id gem! I remember watching a GoRails video about it and thinking it looked super easy to implement.
-
Rails application boilerplate for fast MVP development
SEO tools - meta-tags, sitemap_generator and friendly_id
-
Devise Profile Usernames
friendly_id - We will use the friendly_id gem, which created slugs that we can map to a predetermined route. This is a method you can use throughout an application, not just with the User models.
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models. 5,500 stars by now
What are some alternatives?
react-rails - Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Prerender Rails - Rails middleware gem for prerendering javascript-rendered pages on the fly for SEO
Ruby on Rails - Ruby on Rails
Rack Canonical Host - Rack middleware for defining a canonical host name.
Roda - Routing Tree Web Toolkit
MetaTags - Search Engine Optimization (SEO) for Ruby on Rails applications.
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
SitemapGenerator - SitemapGenerator is a framework-agnostic XML Sitemap generator written in Ruby with automatic Rails integration. It supports Video, News, Image, Mobile, PageMap and Alternate Links sitemap extensions and includes Rake tasks for managing your sitemaps, as well as many other great features.
backbone-react-component - A bit of nifty glue that automatically plugs your Backbone models and collections into your React components, on the browser and server
refinerycms-blog - The very best blogging engine for Refinery CMS
react-d3-library - Open source library for using D3 in React
yandex_xml - Gem yandex_xml. Get data from Yandex.XML service by XML