This project was bootstrapped with Create React App.
βββ src
β βββ containers -------------------------------> Company, Employee etc.
β β βββ {Title}
β β β βββ apiServices ----------------------> all api related code goes here
β β β βββ redux ----------------------------> redux related codes are here for a particular module
β β β β βββ actions.js
β β β β βββ actionTypes.js
β β β β βββ reducer.js ------------------> must be exported and imported in `src/redux/reducers/index.js` to be included in `combineReducers`
β β β βββ routes
β β β β β βββ index.js -----------------> history & menu for the bundle routing goes here
β β β βββ pages ----------------------------> Application Pages; DashboardPage, LoginPage etc.
β β β β βββ **/*.jsx
β β β βββ components -----------------------> components for it's container
β β β β βββ **/*.jsx --------------------> LoginForm, MonthlySalesChart etc.
β β βββ ...
β β βββ Layouts
β β β β βββ HeaderBar, Sidebar
β β β β βββ LayoutWrapper.jsx ------------> Sidebar.jsx + HeaderBar.jsx
β βββ assets -----------------------------------> Images, CSS & Other assets.
β βββ constants
β β βββ config.js.temp -----------------------> base api url. must be copied/renamed to `config.js`
β β βββ history.js ---------------------------> createBrowserHistory for react-router
β β βββ index.js -----------------------------> Application Name
β βββ redux ------------------------------------> common redux related codes for whole application
β β βββ actions
β β βββ actionTypes
β β βββ reducers
β β βββ store.js
β βββ routes -----------------------------------> page routing
β β βββ apiRoutes ----------------------------> all api routes
β β βββ AuthenticatedRouting.jsx -------------> when user logged in and authorized
β β βββ UnauthenticatedRouting.jsx -----------> when user not logged in or unauthorized
β β βββ menuRoutes ---------------------------> routes for sidebar rendering and routing
β β βββ historyRoutes ------------------------> to change pages
β βββ services ---------------------------------> reusable services goes here to use throughout the application
β β βββ apiService ---------------------------> axios middleware and actions
β β βββ checkHttpError -----------------------> check http errors and handle
β β βββ storageService -----------------------> localStorage actions
β β βββ **/*.js
β βββ shared -----------------------------------> shared components and services to use throughout the application
β βββ styles -----------------------------------> less, css, sass
β β βββ formLayout.js ------------------------> ant form layout
β β βββ less
β β β βββ theme.less -----------------------> ant design style override
β β β βββ **/*.less
β βββ Root.js ----------------------------------> Starts Here
β βββ index.js
β βββ index.css
β βββ serviceWorker.js
βββ build (or dist) ------------------------------> `yarn build`
βββ public
β βββ index.html
β βββ favicon.ico
β βββ manifest.json
βββ node_modules
βββ test
βββ jsconfig.json -------------------------------> specify base url as `src`, needed for `components`
βββ .babelrc.js ---------------------------------> Babel plugin import.
βββ .eslintrc.json ------------------------------> linting config and rules. `(eslint)`
βββ .config-overrides.js ------------------------> Custom webpack config. with `custom-cra`
βββ README.md
βββ package.json --------------------------------> packages
βββ yarn.lock
βββ README.md
βββ .gitignore
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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!
Analyzes the bundle size after having a build.
Runs multiple scripts with npm-run-all. Currently runs yarn lint.
Fixes linting and finds lint error in src directory.
Analyzes the bundle size after having a build.
See the section about deployment for more information.
Extreme Caution
Note: this is a one-way operation. Once you eject, you canβt go back!**
If you arenβt satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point youβre on your own.
You donβt have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldnβt feel obligated to use this feature. However we understand that this tool wouldnβt be useful if you couldnβt customize it when you are ready for it.
Versions may change in the future and more libraries will be added.
- "react": "^16.10.1"
- "prop-types": "^15.7.2"
- "react-scripts": "3.2.0"
- "react-dom": "^16.10.1"
- "customize-cra": "^0.8.0"
- "react-app-rewired": "^2.1.3"
- "babel-plugin-import": "^1.12.2"
(dev)
- "husky": "^3.0.8"
(dev) - "npm-run-all": "^4.1.5"
(dev)
- "redux": "^4.0.4"
- "react-redux": "^7.1.1"
- "redux-persist": "^6.0.0"
- "redux-thunk": "^2.3.0"
- "react-router-dom": "^5.1.2"
- "history": "^4.9.0"
- "moment": "2.24.0"
- "source-map-explorer": "^2.1.0"
- "axios": "^0.19.0"
- "eslint": "^6.5.1"
(dev) - "eslint-config-airbnb": "^18.0.1"
(dev) - "eslint-plugin-import": "^2.18.2"
(dev) - "eslint-plugin-jsx-a11y": "^6.2.3"
(dev) - "eslint-plugin-react": "^7.15.1"
(dev) - "eslint-plugin-react-hooks": "^1.7.0"
(dev)
- "antd": "^3.23.6"
- "less": "^3.10.3"
- "less-loader": "^5.0.0"
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify