RicardoG2016 / React-Auth0-MaterialUI-template

Template to get started with React. Repo contains create-react-app fork, Auth0, MaterialUI and has a navbar, routing and required logic for users authentication. Enjoy :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-Auth0-MaterialUI-template

This is a template to get started with React. Repo contains create-react-app fork, Auth0, MaterialUI and has a navbar, routing and required logic for users authentication. Enjoy :)

  • Note: make sure you have react-router V3.0.2 because v4+ will produce errors

Instruction:

Make sure you have the packages below installed

  • create-react-app
    • npm install -g create-react-app
  • auth0
    • npm i auth0-react-scripts
  • material ui
    • npm install material-ui
  • create .env file in the root of your app and add your auth0 domain and client id, follow format below
    • REACT_APP_AUTH0_CLIENT_ID=YOUR_CLIENT_ID
    • REACT_APP_AUTH0_DOMAIN=YOUR_DOMAIN

To start app:

  • git clone https://github.com/RicardoG2016/React-Auth0-MaterialUI-template.git
  • cd into repo
  • npm install
  • npm start

If you need to download any additional packages please reference the package.json file.

alt text

alt text

alt text

About

Template to get started with React. Repo contains create-react-app fork, Auth0, MaterialUI and has a navbar, routing and required logic for users authentication. Enjoy :)


Languages

Language:JavaScript 83.9%Language:CSS 8.6%Language:HTML 7.4%