initial-project
v3.1.5
Published
- setup project by create-react-app and react router v6, redux toolkit, prettier and config pretty code pre-commit
Downloads
7
Readme
Install
- setup project by create-react-app and react router v6, redux toolkit, prettier and config pretty code pre-commit
Use global
npm i -g initial-project
initial-project <project-name>
Use by npx
npx initial-project <project-name>
HAPPY CODING!
apis
- contain config, function request API
assets
fonts
- contain font files
images
- contain image follow structure
<folder image name>
->index.js
+<image name>.<format>
components
- contain component share between pages
pages
- contain page in web
tree structure
+--.husky // config pre-commit
+--node_modules
+--public
+--src
| +--apis
| +--assets
| | +--fonts
| | +--images
| | | +--<image component name>
| | | | +--index.js
| | | | +--<image name>.<image format>
| | | +--...
| | | +--mapAllImage.js
| +--components
| | +--Component1
| | | +--index.js
| | | +--index.styles.js
| | +--...
| +--pages
| | +--AllImage
| | | +--index.js
| | | +--index.styles.js
| | +--Page1
| | | +--components
| | | | +--Component1InPage2
| | | | +--Component2InPage2
| | | +--index.js
| | | +--index.styles.js
| | +--Page2 //page contain nested page
| | | +--components
| | | | +--Component1InPage2
| | | | +--Component2InPage2
| | | +--pages
| | | | +--SubPage1InPage2
| | | | +--SubPage2InPage2
| | | | +--...
| | | | +--routes.js
| | | +--index.js
| | | +--index.styles.js
| | +--Page3
| | | +--index.js
| | | +--index.styles.js
| | +--...
| | +--routes.js
| +--redux
| | +--countSlice.js // create slide follow redux toolkit
| | +--...
| | +--index.js //store
| | +--reducer.js
| +--App.js
| +--index.css
| +--index.js // entry point
| +--reportWebVitals.js
| +--setupTests.js
+--.gitignore
+--.prettierignore
+--.prettierrc // config prettier
+--package.json
+--package-lock.json
+--README.md
+--yarn.lock
If you want to buy us a coffee