react-on-rails
Grape
Our great sponsors
react-on-rails | Grape | |
---|---|---|
9 | 12 | |
5,033 | 9,829 | |
0.3% | 0.2% | |
7.3 | 8.2 | |
23 days ago | 2 days 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.
-
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
Grape
-
16 Best Ruby Frameworks For Web Development [2024]
Grape is a REST-like microframework written in Ruby programming language. Grape is also considered among the best ruby frameworks and can be used to run on top of Rack or can be used to complement the existing web application frameworks such as Sinatra or Rails. The latter can be done through the DSL-based REST-API for communication. The Grape ruby web framework facilitates efficient and meaningful APIs working in the web application domain.
Grape’s support extends to standard conventions, multiple format support, content negotiation, versioning, etc. The complete guide to Grape to develop REST-APIs, test the API and analyze the performance metrics is available on its official GitHub page.
-
Web Frameworks actively maintained in 2023?
Grape (ruby-grape.org)
-
An Overview of Ruby on Rails 7.1 Features. Part III
I'm very ambivalent about Grape, but this very much reminds me of something I do really like about it: the param validation. https://github.com/ruby-grape/grape#parameters
-
Rails api auth with Grape and Devise JWT
I am currently working on developing and api using grape and devise jwt for user user authentication.
-
16 Best Ruby Frameworks For Web Development
Grape is a REST-like microframework written in Ruby programming language. Grape is also considered among the best ruby frameworks and can be used to run on top of Rack or can be used to complement the existing web application frameworks such as Sinatra or Rails. The latter can be done through the DSL-based REST-API for communication. The Grape ruby web framework facilitates efficient and meaningful APIs working in the web application domain.
Grape’s support extends to standard conventions, multiple format support, content negotiation, versioning, etc. The complete guide to Grape to develop REST-APIs, test the API and analyze the performance metrics is available on its official GitHub page.
-
What resources do you recommend to learn about Rails APIs?
I love the Grape gem for building APIs - might be worth considering if you are building something new: https://github.com/ruby-grape/grape
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
Grape is a REST-like API framework for Ruby. It’s designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs. 9,200 stars by now
What are some alternatives?
Rails::API - Rails for API only applications
jbuilder - Jbuilder: generate JSON objects with a Builder-style DSL
graphql - Ruby implementation of GraphQL
Fast JSON API - No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
react-rails - Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
JSONAPI::Resources - A resource-focused Rails library for developing JSON:API compliant servers.
ActiveModel::Serializers - ActiveModel::Serializer implementation and Rails hooks
Ruby on Rails - Ruby on Rails
Roda - Routing Tree Web Toolkit
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
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
jsonapi-rb - Efficiently produce and consume JSON API documents.