CMS codebase documentation
GitHubGitHub (opens in a new tab)
  • Introduction
  • Dashboard Codebase
    • Get Started
      • Overview
      • Prerequisites
      • Getting Started
      • Folder Stucture
      • Middleware
      • Naming Convention
      • Utilities
    • Third Party Packages
      • Overview
      • Packages Used
        • Emotion
        • Day js
        • React Favicon
        • React Howler
        • Firebase
  • Web App Codebase
    • Get Started
      • Overview
  • Security Headers
  • Code Commenting
  • Deployment
  • Introduction
  • Dashboard Codebase
    • Get Started
      • Overview
      • Prerequisites
      • Getting Started
      • Folder Stucture
      • Middleware
      • Naming Convention
      • Utilities
    • Third Party Packages
      • Overview
      • Packages Used
        • Emotion
        • Day js
        • React Favicon
        • React Howler
        • Firebase
  • Web App Codebase
    • Get Started
      • Overview
  • Security Headers
  • Code Commenting
  • Deployment
Dashboard Codebase
Get Started
Utilities

Utils

Any utilities should be made under shared/utils. If name of util is xyz:

  • Make the folder name xyz-utils and file inside that folder should be named xyz.util.ts (Note: The folder name has a dash and file name has dot in the name with the folder name being plural(utils) and file name being singular(util))
Naming ConventionOverview

MIT 2024 © Nextra.