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
- 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
git clone https://github.com/RicardoG2016/React-Auth0-MaterialUI-template.git
- cd into repo
npm install
npm start