Vexel - Component Structure

File structure

Vexel-TS/
├── public
├── src
|   ├── assets/
|   |   ├── css/
|   |   ├── iconfonts
|   |   ├── images
|   |   └── scss
|   ├── common/
|   |   └── redux
|   ├── component/
|   ├── layouts/
|   ├── index.scss
|   ├── main.tsx
|   ├── ScrolltoTop.tsx
|   └── vite-env.d.ts
├── .eslintrc.json
├── index.html
├── package.json
├── README
├── tsconfig.json
├── tsconfig.node.json
└── vite.config
Folders Description
  • Vexel - React Typescript Admin Dashboard Template / : Root template folder contain all react component(Structure page), css, scss, images and react components.
    • public/ : Vite has built-in support for serving static assets living in the public/ directory. For example, if we save a file in public/abc.txt , then it will be served us as-is at https://domain.com/abc.txt .
    • src/ : this file contains all the source file in the template.
      • assets/: A folder where you can put images, css, json data anything else to be copied wholesale when you build your application..
      • components/ : "This file includes the common components such as the header, sidebar, switcher, and footer, which are used across all components."
      • container/: This Folder contains all the components.
      • pages/ : this Folder contains the layouts of the template.
      • App.tsx : Defines AppModule, the root module that tells vite-react how to assemble the application. Right now it declares only the AppComponent. Soon there will be more components to declare.
      • main.tsx : Routing basically means navigating between pages. You have seen many sites with links that direct you to a new page. This can be achieved using routing.
      • index.html : The main page that is served when someone visits your site. Most of the time you'll never need to edit it. The CLI automatically adds all tsx and css files when building your app so you never need to add any <script> or <link> tags here manually.
      • package.json : npm configuration listing the third party packages your project uses. You can also add your own custom scripts here.
      • vite.config.ts : the file vite.config.ts is the stands for configuration management tools. and we mostly use for to configure the root routing path