1.0.9 • Published 2 years ago

cra-template-context-mui-axios-hooks v1.0.9

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

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-deps

Usage:

  • After installation, go to /src/index.js and add your clientId and redirectUri, and add your tenentId in authority.
  • Go to /src/services/AuthService.js and add clientId in account, and add postLogoutRedirectUri add redirect uri (default to http://localhost:3000)
  • Go to /src/App.js and modify the file to start your project.

  • npm start in 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/fonts and add your custom fonts in .ttf format.
  • Go to /src/index.css to import your custom fonts.