1.0.9 • Published 3 years ago
cra-template-context-mui-axios-hooks v1.0.9
A create-react-app template.
Installation:
npx create-react-app myapp --template context-mui-axios-hooks:warning: CAUTION: Please install the following separately -
npm i @mui/styles msal-react-tester --legacy-peer-depsUsage:
- After installation, go to
/src/index.jsand add yourclientIdandredirectUri, and add your tenentId inauthority. - Go to
/src/services/AuthService.jsand add clientId inaccount, and addpostLogoutRedirectUriadd redirect uri (default tohttp://localhost:3000)
Go to
/src/App.jsand modify the file to start your project.npm startin your terminal to run your project.
Custom MUI Theme:
Go to /src/theme/theme.js to add your custom MUI theme.
Add custom fonts:
- Go to
/src/assets/fontsand add your custom fonts in.ttfformat. - Go to
/src/index.cssto import your custom fonts.