Directory Structure
Root Directory
appThis directory contains the main application code, including pages, API routes, and other core functionality of the Next.js app.componentsThis directory houses reusable UI components used throughout the application. These components can be imported and used in various parts of the app to maintain consistency and modularity.layoutThis directory contains the layout structure for the admin panel. It defines the overall look and feel of the admin interface, including common elements like headers, footers, and sidebars.libThis directory stores various utility functions, helpers, and external libraries that can be used throughout the application to keep the code organized and DRY (Don't Repeat Yourself).providerThis directory contains the library and pre-defined IMDOS UI functions, providing essential services and context to different parts of the application, ensuring consistent data flow and state management.publicThis directory is for static assets such as images, fonts, and other files that need to be served directly to the client. Anything placed in this directory can be accessed via a URL relative to the root of the site.
App Directory
(authentication)This directory is likely used for handling authentication-related code, such as login, logout, and user session management. It might include components, hooks, and utilities to manage user authentication state.adminThis directory contains the modules and page codes for the admin panel. It includes various admin-specific functionalities, components, and pages that are accessible only to users with administrative privileges.apiThis directory is used for defining API routes. These routes are used to handle server-side logic and can be accessed from the client-side code to perform operations like fetching data, submitting forms, and other backend interactions.
Tip: You can use your own authentication flow, by changing the (authentication) and api/authentication/route.js files code