Folder Structure
A simple, intuitive folder structure ensures easy navigation without any hassle.
Under themantis-material-react/ In the directory, you will find the following folder structure.
mantis-react-ts
..
βββ src
β βββ _api -> Mock JSON data to be used for working apps
β βββ assets
β β βββ images
β β βββ third-party -> Third-party styles
β βββ components -> Common components used across a theme
β β βββ @extended -> Extended components of MUI
β β βββ cards -> Cards used at different locations
β β βββ logo
β β βββ third-party
β β βββ ...
β βββ contexts -> State context for Login management & config
β βββ data -> Static data
β βββ hooks -> Custom hooks
β βββ layout
β β βββ Auth -> Layout for login showcase
β β βββ Component -> Layout for components showcase
β β βββ Dashboard -> Layout for dashboard
β β βββ Pages -> Blank pages
β β βββ Simple -> Layout for landing and contact showcase
β βββ menu-items -> Menu items
β βββ metrics -> metrics items
β βββ pages -> View files for all pages
β β βββ apps
β β βββ auth
β β βββ ...
β βββ routes -> Different routes based on layouts
β βββ sections -> This contains different sections used only for pages
β βββ themes -> Contains application style and theme
β β βββ overrides -> MUI overrides for each component
β β βββ theme -> Different theme preset
β β βββ ... -> Other theme-related setups
β βββ type -> common types for Typescript
β βββ utils
β β βββ locales -> Different locale JSON files
β β βββ route-guard -> Auth guard to prevent unexpected navigations
β β βββ ... -> Other utils function
β βββ App.tsx
β βββ config.ts -> Different theme config
β βββ index.tsx
βββ .env -> Store configuration settings and environment variables
βββ eslint.config.mjs -> To configure ESLint rules
βββ .prettierrc -> To Code formatting style rules
βββ tsconfig.json
βββ package-lock.json -> File generated by npm
βββ package.json -> Contains metadata (name, version, dependencies, scripts, and other)
βββ README.md
βββ yarn.lock -> File generated by yarnLast updated