react-on-rails
Devise Token Auth
Our great sponsors
react-on-rails | Devise Token Auth | |
---|---|---|
9 | 7 | |
5,033 | 3,502 | |
0.3% | - | |
7.3 | 6.0 | |
23 days ago | about 2 months ago | |
Ruby | Ruby | |
MIT License | Do What The F*ck You Want To Public 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
Devise Token Auth
-
Don't make me think, or why I switched to Rails from JavaScript SPAs
I mentioned Identity in my first comment. I've never found it as simple as Devise though - especially in an API only setting.
With Devise there's a third-party Gem you can use called devise_token_auth which deals with everything automatically.
-
Working around un-maintained redux-token-auth for redux and react 17 upgrade
redux-token-auth is a great library. What it mainly does is it provides a plug and play auth implementation functionality for ruby on rails based APIs which implement popular devise_token_auth for auth handling.
-
Rails API Authentication with JWT Options
have you looked at https://github.com/waiting-for-dev/devise-jwt or https://github.com/lynndylanhurley/devise_token_auth
-
Best project setup for Rails+React with "remember me" feature
I'd prefer to have a standalone rails API and a react client separately, but that's not mandatory. I discovered a gem called devise_token_auth and it didn't seem to have refresh tokens but it refreshed the tokens on every request anyway so I was pretty happy with it.
-
Devise, The Swiss Army Knife of Rails User Authentication.
As a side note, also check out devise_token_auth here
What are some alternatives?
JWT - A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.
Devise - Flexible authentication solution for Rails with Warden.
react-rails - Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Doorkeeper - Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.
devise-jwt - JWT token authentication with devise and rails
Ruby on Rails - Ruby on Rails
Knock - Seamless JWT authentication for Rails API
openapi-typescript-codegen - NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
OmniAuth - OmniAuth is a flexible authentication system utilizing Rack middleware.
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