Ecme logoEcme logo
Dashboard
    Ecommerce
    Project
    Marketing
    Analytic
Network
    BGP
      Peer
      RTBH
Netflow
    Dashboard
    Flow Analysis
      Top Talkers
      Flow Explorer
      IP Analyzer
    Threats
      Active Attacks
      Mitigation
    System
      Diagnostics
DPI
    Overview
    Traffic Logs
    Analysis
      IP Analysis
      Domain Check
      Unmapped ASNs
      Uncategorized Domains
    Threats
      Blacklists Data
      Blocklist Sources
      Threat Feeds
    Configuration
      Senders
      Ignored Domains
      Webhooks & Alerts
      System Maintenance
    Datasets
      IP Dataset
      Domain Dataset
Concepts
    AI
      Chat
      Image
    Projects
      Scrum Board
      List
      Details
      Tasks
      Issue
    Customer
      List
      Edit
      Create
      Details
    Products
      List
      Edit
      Create
    Orders
      List
      Edit
      Create
      Details
    Account
      Settings
      Activity log
      Roles & Permissions
      Pricing
    Help Center
      Support Hub
      Article
      Edit Article
      Manage Article
    Calendar
    File Manager
    Mail
    Chat
UI Components
    Common
      Button
      Grid
      Typography
      Icons
    Feedback
      Alert
      Dialog
      Drawer
      Progress
      Skeleton
      Spinner
      Toast
    Data Display
      Avatar
      Badge
      Calendar
      Cards
      Carousel
      Table
      Tag
      Timeline
      Tooltip
    Forms
      Checkbox
      Date Picker
      Form Control
      Input
      Input Group
      Radio
      Segment
      Select
      Slider
      Switcher
      Time Input
      Upload
    Navigation
      Dropdown
      Menu
      Pagination
      Steps
      Tabs
    Graph
      Charts
      Maps
Authentication
    Sign In
      Simple
      Side
      Split
    Sign Up
      Simple
      Side
      Split
    Forgot Password
      Simple
      Side
      Split
    Reset Password
      Simple
      Side
      Split
    Otp Verification
      Simple
      Side
      Split
Others
    Access Denied
    Landing
Guide
    Documentation
    Shared Component
    Utilities
    Changelog
Copyright © 2026 Ecme All rights reserved.
Term & Conditions | Privacy & Policy
Getting Started
IntroductionInstallationTailwindCSSCSSStarterUpdating
Development
Development ServerEnvironment VariablesFolder StructureRoutingCreate New PageAPI IntegrationAuthenticationState management
Configuration
App ConfigLayoutsNavigation ConfigThemingInternationalizationDark/Light ModeDirectionOverall Theme Config
Deployment
Build production
Other
Sources & Credits

Folder Structure

Our template's folder structure closely follows the official Next.js app router structure conventions. In this section you will find the basic folder structure and everything you need to get the template up and running. Both the demo and starter versions have the same structure, except that the starter version will have fewer files & folders than the demo version as they are not required in the starter.

Below is a schematic diagram of directory structure:

Typescript
Javascript

├── messages                      # Locale messages
|   ├── en.json                   # locale JSON file
|   └── ...                       # Other locale JSON files
├── public                        # Static resource
|   ├── img                       # Images
|   ├── data                      # Static data
|   └── ...                       # Other static files
├── src
│   ├── @types                    # Type files that share across the temeplate
│   │   └── ...                   
│   ├── app                       # Main application directory for Next.js App Router
│   │   ├── (auth-pages)          # Group routes for auth pages
│   │   ├── └── ...               # Auth pages
│   │   ├── └── layout.tsx        # Base layout for auth pages
│   │   ├── (protected-pages)     # Group routes for pages theat require authentication
│   │   ├── ├── ...               # Protected pages
│   │   ├── └── layout.tsx        # Root layout for protected pages
│   │   ├── (public-pages)        # Group routes for public pages
│   │   ├── └── ...               # Public pages
│   │   ├── api                   # API endpoint
│   │   |   └── ...               # API route & files
│   │   favicon.ico               # Favicon
│   │   layout.tsx                # Root layout
│   │   not-found.tsx             # Empty page for 404
│   │   page.tsx                  # Entry page
|   ├── assets                    # App static resource
│   │   ├── maps                  # Map meta data 
│   │   ├── markdown              # Markdown files
│   │   ├── styles                # Global CSS files
│   │   └── svg	                  # SVG files
│   ├── components                # General components
│   │   ├── auth                  # Auth related components
│   │   ├── docs                  # Documentations related components
│   │   ├── layouts               # Layout components
│   │   ├── shared                # Upper level components built on top of ui components
│   │   ├── template              # Template components, such as Header, Footer, Nav, etc...
│   │   ├── ui                    # Bottom level components, such as Button, Dropdown, etc...
│   │   └── view                  # Sharable High level components that used for pages 
│   ├── configs                   # Configuration files        
│   │   └── ...          
│   ├── constants                 # Constant files
│   │   └── ...      
│   ├── i18n                      # Localization setup
│   │   └── ...                   
│   ├── mock                      # Mock data for fake API Calls
│   │   └── data                  # Mock data
│   │   |   └── ...               # Mock data TS files
│   ├── server                    # Server side files
│   │   └── actions               # Server action files
│   │   |   └── ...      				
│   ├── services                  # Service files for managing client API integrations
│   │   ├── ApiService.ts         # Api request & response handler
│   │   ├── axios                 # Axios configs & interceptors
|   |   |   └── ...
│   │   └── ...                   # Other service files
│   ├── utils                     # All reusable function & hooks
│   │   ├── hooks                 # Hooks
│   │   |   └── ...      					
│   │   └── ...                   # Reusable functions 
│   |   auth.ts                   # Next auth setup entry file
│   └── middleware.ts             # Nextjs middleware
├── .env                          # File to stores environment configuration and secrets
├── .eslintignore                 # Ignore file for eslint  
├── .gitignore                    # Ignore file for git
├── .prettierignore               # Ignore file for prettier
├── .prettierrc                   # Prettier config
├── next-env.d.ts                 # Nextjs environment declaration
├── next.config.mjs               # Nextjs configuration file
├── package.json                  
├── package.lock.json            
├── postcss.config.mjs            # PostCss configuration file
├── README.md 
├── tailwind.config.ts            # TailwindCSS configuration file
└── tsconfig.json                 # Project Typescript configuration file

This folder structure provides a clear organization of resources, components, configuration, and assets, making it easier to manage and scale your project. Each folder and file is purposefully placed to ensure a clean and maintainable codebase.