Skip to content

Instantly share code, notes, and snippets.

@carmelodevuz
Last active September 24, 2023 12:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save carmelodevuz/35cbdd669fea5d678278491b810884d2 to your computer and use it in GitHub Desktop.
Save carmelodevuz/35cbdd669fea5d678278491b810884d2 to your computer and use it in GitHub Desktop.
Metronic React Skeleton (demos 1-8)

Basic skeleton preparation

  1. Remove unnecessary modules in the folder src/app/modules. (!!!Except auth and errors folders).
  2. Comment unnecessary routes in the src/app/routing/PrivateRoutes.tsx file. [6, 9, 12-17, 27-83, 91-101] rows.
  3. Remove cards from src/_metronic/partials/content/cards folder.
  4. Remove src/app/pages/dashboard folder and src/app/pages/MenuTestPage.tsx file.
  5. Cleard Dashboard src/app/pages/dashboard/DashboardWrapper.tsxand comment next rows: [3-16, 20-131].
  6. Remove Widgets src/_metronic/partials/widgets folder.
  7. Clear Aside menu in the file src/_metronic/layout/components/aside/AsideMenuMain.tsx. Keep only Dashboard menu item.
  8. Clear Header menu in the file src/_metronic/layout/components/header/MenuInner.tsx. Keep only dashboard menu item.

In case if you don't need Authorization module, you can remove it also:

  1. Remove src/app/modules/auth folder.
  2. In the file src/app/routing/AppRoutes.tsx comment [12, 23, 29-30, 35-40] rows.
  3. In the file src/index.tsx comment [19, 32, 42, 44] rows.
  4. In the file src/app/App.tsx comment [6, 13, 16] rows.
  5. In the file src/_metronic/partials/layout/header-menus/HeaderUserMenu.tsx comment [4, 9, 22-30, 127-131] rows.
  6. In the file src/_metronic/layout/components/aside/AsideToolbar.tsx comment [1, 7, 26-28]
@alisalimnia
Copy link

Good Fine Thanks

@arslanalidev
Copy link

Remove src/app/pages/dashboard folder and src/app/pages/MenuTestPage.tsx file.
Cleard Dashboard src/app/pages/dashboard/DashboardWrapper.tsxand comment next rows: [3-16, 20-131].

Hey Please rectify this mistake, I am not sure what you want to say here. I am using the dashboard demo2.
Screenshot 2023-09-06 at 2 23 21 AM
You can see it in the attached image. If we fix removed src/app/pages/dashboard folder then how can we fulfill the next the step. So please update the documentation.
Thank You

@krishansiwach
Copy link

Hello there, I want a JavaScript version of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment