source

The source is the crema's default app. That is built with the Context APIs(State Management). Source has the default folder structure like below

Crema source folder structure
Source folder structure
// Accounts route configuration with permission
export const accountPagesConfigs = [
  {
    permittedRole: [RoutePermittedRole.User, RoutePermittedRole.Admin],
    path: '/my-profile',
    element: <Account />,
  },
];

As shown in the above image source have the src folder and some basic configuration files.

the src folder has some subfolders as below describe.

  1. assets: images of the related app

  2. core: this is the core folder that has routes configurations and app layout of a particular app We have 2 folders inside this like below I. AppLayout: In this folder, we have a single file for app layout configuration like below.

    II. AppRoutes: In this folder, we have all routes with the permission and left sidebar configuration like below.

    We have the above configuration of the left sidebar.

    We have multiple files for all modules. each module has its route config file

  3. module: In this folder, we have multiple modules. Here we can write our full module or we can directly access the library module like below. by using this we can use the same module in the multiple apps

Last updated

Was this helpful?