All Projects → amaurym → React Redux Auth0 Kit

amaurym / React Redux Auth0 Kit

Licence: mit
Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to React Redux Auth0 Kit

Starter React Flux
Generate your React PWA project with TypeScript or JavaScript
Stars: ✭ 65 (-43.48%)
Mutual labels:  webpack, eslint, create-react-app, babel, react-router
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (+26.09%)
Mutual labels:  webpack, eslint, babel, boilerplate, react-router
React Pages Boilerplate
Deliver react + react-router application to gh-pages
Stars: ✭ 134 (+16.52%)
Mutual labels:  webpack, eslint, babel, boilerplate, react-router
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (+43.48%)
Mutual labels:  webpack, eslint, babel, boilerplate, react-router
Pwa
An opinionated progressive web app boilerplate
Stars: ✭ 353 (+206.96%)
Mutual labels:  webpack, eslint, babel, boilerplate, react-router
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-72.17%)
Mutual labels:  webpack, eslint, babel, boilerplate, react-router
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (+22.61%)
Mutual labels:  webpack, eslint, babel, boilerplate, react-router
Styled React Boilerplate
Minimal & Modern boilerplate for building apps with React & styled-components
Stars: ✭ 198 (+72.17%)
Mutual labels:  webpack, babel, boilerplate, minimal
React Starter Kit
React, Redux, Webpack, Material UI, Boostrap 4, Code Splitting, HMR
Stars: ✭ 229 (+99.13%)
Mutual labels:  webpack, eslint, babel, boilerplate
Threejs Webpack Es6 Boilerplate
A basic boilerplate for a Three.js project compiled with Webpack and transpiled via Babel to enable using ES6 syntax.
Stars: ✭ 267 (+132.17%)
Mutual labels:  webpack, eslint, babel, boilerplate
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+16184.35%)
Mutual labels:  webpack, eslint, babel, boilerplate
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (+159.13%)
Mutual labels:  webpack, eslint, babel, boilerplate
React Redux Saucepan
A minimal and universal react redux starter project. With hot reloading, linting and server-side rendering
Stars: ✭ 86 (-25.22%)
Mutual labels:  eslint, babel, boilerplate, react-router
React
Extremely simple boilerplate, easiest you can find, for React application including all the necessary tools: Flow | React 16 | redux | babel 6 | webpack 3 | css-modules | jest | enzyme | express + optional: sass/scss
Stars: ✭ 244 (+112.17%)
Mutual labels:  webpack, babel, boilerplate, react-router
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (+35.65%)
Mutual labels:  webpack, eslint, babel, react-router
React Isomorphic Boilerplate
🌟 An universal React isomorphic boilerplate for building server-side render web app.
Stars: ✭ 653 (+467.83%)
Mutual labels:  webpack, eslint, babel, boilerplate
React App
Create React App with server-side code support
Stars: ✭ 614 (+433.91%)
Mutual labels:  webpack, create-react-app, babel, boilerplate
React Ssr Setup
React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties
Stars: ✭ 678 (+489.57%)
Mutual labels:  webpack, eslint, babel, react-router
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (+25.22%)
Mutual labels:  webpack, eslint, babel, boilerplate
Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (+251.3%)
Mutual labels:  webpack, babel, boilerplate, minimal

React Redux Auth0 Kit

Minimal starter boilerplate project with React, Redux, React Router and Auth0 authentication

Live demo

A live demo of this project with a simple Facebook login via Auth0 is available here: https://react-redux-auth0.firebaseapp.com.

Getting started

First create an auth0 account. Then run the following commands. Make sure your src/utils/config.js file has the correct values from your auth0 account.

# Install dependencies
npm install

# Copy configuration and replace with your own
cp src/utils/config.example.js src/utils/config.js

# Run
npm start

Open http://localhost:3000 to see the app running.

Features

Auth0

Auth0 helps you to:

  • Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
  • Add authentication through more traditional username/password databases.
  • Add support for linking different user accounts with the same user.
  • Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
  • Analytics of how, when and where users are logging in.
  • Pull data from other sources and add it to the user profile, through JavaScript rules.

AuthService

The library auth0-lock provides the user authentication, and I also have a src/utils/AuthService.js module to wrap this Lock Widget usage and manage the localStorage items.

I'm using the latest Auth0 Lock 10 version in popup mode, which means here's the flow:

  • ->Login widget shows login panel
  • ->Redirect to auth0 to check login creds (done in hidden iframe)
  • ->Redirect back to localhost:3000/callback (done in hidden iframe)
  • ->AuthService waits for 'authenticated' event to fire
  • ->Redirects back to homepage

Libraries

This starter kit is minimal, only the strict necessary is added.

Library Description
react Facebook's library for building user interfaces 
redux State container for JavaScript apps
react-router Declarative routing for React apps using navigational components
create-react-app All tooling needed for react apps

The starter kit includes a working example app that puts all of the above to use.

Development

create-react-app takes care of tooling, development server, live reload, building, testing.

HMR is unfortunately not enabled during development, because create-react-app doesn't support it.

If you wish to directly use Webpack instead of create-react-app, you can eject any time by running npm run eject. Read here for more information about ejecting.

Testing

npm run lint to check linting errors. This projects follows eslint-config-react-app style.

npm test to run all tests. This project uses jest to run tests, and enzyme for unit testing React components.

Deployment

Out of the box, this starter kit is deployable by serving the ~/build folder generated by npm run build.

License

MIT. See LICENSE file.

Future ideas

  • [ ] Add a side effects library (redux-saga, redux-observable) to manage side effects. It makes the code more redux-compliant, however it goes against minimalism.
  • [ ] Any other ideas are welcome! Just post an issue.

Donations

If you like this project, I would really appreciate small donations. Here's my Ethereum address: 0xa395447BF15f7525484C0378c76627D45ADE0B96.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].