React Redux Rails Oauth Boilerplate

screenshot of React Redux Rails Oauth Boilerplate

An experimental boilerplate with decoupled frontend/backend apps, featuring React, Redux, Redux sagas, Rails 5, Trailblazer,... with token authentication and using Facebook as an auth provider.

Overview

The React-Redux-Rails-OAuth-Boilerplate is an innovative solution for developers looking to build scalable web applications with a clean separation between frontend and backend functionality. This experimental boilerplate harnesses the power of modern technologies—React, Redux, and Rails 5—while integrating Facebook as an authentication provider. It's designed with a focus on maximizing decoupling and componentization, ensuring that both frontend and backend can evolve independently.

What sets this boilerplate apart is its organization, which groups files by feature rather than by type, promoting a more intuitive structure for development. While it's essential to note that this code is not actively maintained, it's still a valuable starting point for projects that aim to implement a token-based authentication system and want to minimize dependency on Rails through smart abstraction of business logic.

Features

  • Decoupled Frontend and Backend: Easily manage independent deployments and updates for the frontend and backend applications, promoting scalability.

  • Modern Tech Stack: Built on React, Redux, and Rails 5, offering a robust environment for developing sophisticated web apps.

  • Token Authentication: Includes user authentication using Facebook, adding a layer of security and user experience.

  • Feature-Based File Organization: Files are organized by features rather than by type, supporting cleaner code management and easier navigation.

  • Minimal Rails Dependency: Business logic is abstracted into services, reducing tight coupling with Rails and making the backend more versatile.

  • Configuration Through Environment Variables: Simple setup process with .env files for managing important configuration options, ensuring easy customization.

  • Live Demo Accessible: Both the frontend and backend can be run on free Heroku dynos, allowing for quick testing and exploration of the capabilities without installation.

  • Example Features Included: Comes with an example todolist feature for practical demonstration of functionality and ease of getting started.