create-outside-app v1.0.1
React Admin Panel
Authorization:
For authorization on zteam npm you need: 1) npm set registry https://verdaccio.zteam.dev-kodix.ru 2) npm login --registry=https://verdaccio.zteam.dev-kodix.ru 3) enter your work's email address 4) enter TEAM_TOKEN as password
Project configuration:
Configuration is done with the command:
node ./configs/config.js [path to your css folder - ./src/assets/css by default]
In the root folder there is a viewconfig.json file that is used to configure the project.
Configure style
Createcolors.css
file in your assets directory with color's custom properties and rewrite default colors from helperhealpers/styleColors.ts
Configure breakpoints
Createmedias.css
file in your assets directory with postCSS's custom medias and rewrite default medias from helperhealpers/styleBreakpoints.ts
Configure spacing
Createspacing.css
file in your assets directory with custom properties. Properties generated with coefficient (that can be replaced dynamical) and values# OD React SB
SVG sprite generation via svg-sprite-generator
svg-sprite-generate -d ./src/assets/icons -o /public/sprite.svg
Logo
Logo used in SVG format. Upload it to assets/icons
directory as logo.svg
and generate svg-sprite by running command.
After that you can use logo as Logo.tsx component.
Background
On this time background supports only in authentication's page. Upload image bg.png
to public/images/
directory.
Development:
Inside the newly created project, you can run some built-in commands:
npm run dev
Runs the app in development mode. Open http://localhost:3000 to view it in the browser.
The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed.