A app with detailed information of a github user with fusion-charts, Auth0, styled-components, react-router-dom. Main
purpose of this app is to try & get very good at using fusion-chart, Auth0, css-grid. Read below the preview to know about the technology i used in this app.
// component.js - for styled-component
import styled from "styled-components/macro"
export const Wrapper = styled.htmlElement`
write your styles here
`
// component-folder index.js
import React from 'react';
import { Wrapper } from './component.js';
const ReactComponent = () => {
// logic here
return <Wrapper>
{some content}
</Wrapper>
}
export default ReactComponentimport { FiUsers, FiUserPlus } from "react-icons/fi";
<FiUsers className="nameOfTheClass"> </FiUsers>;version used - "react-router-dom": "^5.2.0",
-
renders the first child that matches
-
A always matches
-
For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests.
Third party tool which provides authentication & authorization services to applications. It has extremely straight forward api & well documented.
-
Create Application
-
Choose : Single Page Web Applications
-
Choose : React
-
Go to Settings Tab
-
Copy/Paste Domain, ClientID - can be public (or use .env)
-
Add Domain - for now http://localhost:3000 (DON'T COPY PASTE FROM URL BAR)
- Allowed Callback URLs (where auth0 will redirect after the user authentication).
- Allowed Logout URLs (where auth0 can return to after the user logged-out).
- Allowed Web Origins (we have to register application URL sothat the app can silently refresh the authentication tokens)
- SAVE CHANGES!!!!!!!!!!!!!!!
-
Connections database (email, password)
In order for routing to work on netlify, redirects was added to the public folder
- _redirects file in public
/* /index.html 200
package.json
"build": "CI= react-scripts build",