Authentication with create-react-app and Auth0
- Create an account at Auth0
- Create a new application with Auth0.
- Under the application settings grab the domain and clientid
- While you're there add http://localhost:3000/callback to the allowed callbacks and http://localhost:3000/ to the allowed web origins.
- Replace the
example.env
with your data - Rename
example.env
to.env
:
REACT_APP_DOMAIN=*your domain here*
REACT_APP_CLIENTID=*your client ID here*
REACT_APP_REDIRECT=http://localhost:3000/callback
Follow Auth0's instructions for integrating with your project
- Create a google project
- Follow Auth0's instructions for integration
- npm install
- npm start
- Install now.sh globally
- Rename
example.now.json
in the public folder tonow.json
- Replace the alias and name with whatever you want
- Name will be the prefix for all your staging links
- Alias will be the actual name of your site (i.e. mysite.now.sh)
npm run deploy
in the root directory