Skip to Content
πŸš€ Nextall v2.0.0 is live with full multivendor support!
Folder structure

πŸ“‚ Folder Structure

The nextall project is organized with a clean and modular architecture.
Each directory and file has a specific purpose to keep the backend scalable, maintainable, and easy to navigate.

πŸ“¦ Project Tree

nextall/ # Root project folder β”‚ β”œβ”€β”€ nextall-be/ # Backend folder β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ config/ # Configuration files (DB, env, etc.) β”‚ β”‚ β”œβ”€β”€ controllers/ # Controllers for handling requests β”‚ β”‚ β”œβ”€β”€ email-templates/ # Email template files β”‚ β”‚ β”œβ”€β”€ models/ # Database models (Mongoose schemas) β”‚ β”‚ β”œβ”€β”€ routes/ # API route definitions β”‚ β”‚ └── index.js # Entry point for backend server β”‚ β”‚ β”‚ β”œβ”€β”€ .env.example # Example environment variables β”‚ β”œβ”€β”€ .gitattributes # Git attributes config β”‚ β”œβ”€β”€ .gitignore # Git ignore file β”‚ β”œβ”€β”€ jsconfig.json # JS config for path aliases β”‚ β”œβ”€β”€ package-lock.json # Dependency lock file β”‚ β”œβ”€β”€ package.json # Project dependencies & scripts β”‚ └── README.md # Project documentation β”‚ β”œβ”€β”€ nextall-fe/ # Frontend folder β”‚ β”œβ”€β”€ public/ # Public assets like images, icons, fonts (served as /) β”‚ β”‚ β”‚ β”œβ”€β”€ src/ # Main source code β”‚ β”‚ β”œβ”€β”€ app/ # Next.js 15 App Router (pages and layouts) β”‚ β”‚ β”‚ β”œβ”€β”€ (user)/ # User-specific routes β”‚ β”‚ β”‚ β”œβ”€β”€ admin/ # Admin panel routes β”‚ β”‚ β”‚ β”œβ”€β”€ vendor/ # Vendor dashboard routes β”‚ β”‚ β”‚ β”œβ”€β”€ layout.jsx # Global layout file for app β”‚ β”‚ β”‚ β”œβ”€β”€ not-found.jsx # Custom 404 page β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ components/ # Reusable UI components β”‚ β”‚ β”œβ”€β”€ data/ # Static/dummy data files β”‚ β”‚ β”œβ”€β”€ guards/ # Route guards (e.g., AuthGuard, GuestGuard) β”‚ β”‚ β”œβ”€β”€ hooks/ # Custom React hooks β”‚ β”‚ β”œβ”€β”€ illustrations/ # Illustrations or SVG assets β”‚ β”‚ β”œβ”€β”€ layout/ # Page-level layouts β”‚ β”‚ β”œβ”€β”€ providers/ # Context providers (Theme, Auth, QueryClient, etc.) β”‚ β”‚ β”œβ”€β”€ redux/ # Redux store, slices, and setup β”‚ β”‚ β”œβ”€β”€ routes/ # Route definitions and helpers β”‚ β”‚ β”œβ”€β”€ services/ # API service functions (Axios/Fetch wrappers) β”‚ β”‚ β”œβ”€β”€ theme/ # Theme configuration (MUI/Custom Theme) β”‚ β”‚ β”œβ”€β”€ utils/ # Helper/utility functions β”‚ β”‚ └── validations/ # Form validation schemas (Yup) β”‚ β”‚ β”‚ β”œβ”€β”€ .env.development.example # Example env vars for development β”‚ β”œβ”€β”€ .env.production.example # Example env vars for production β”‚ β”œβ”€β”€ .eslintrc.json # ESLint config β”‚ β”œβ”€β”€ .gitattributes # Git attributes β”‚ β”œβ”€β”€ .gitignore # Git ignore rules β”‚ β”œβ”€β”€ .prettierrc # Prettier config β”‚ β”œβ”€β”€ jsconfig.json # Path aliases and config β”‚ β”œβ”€β”€ next.config.js # Next.js configuration β”‚ β”œβ”€β”€ package-lock.json # NPM lock file β”‚ β”œβ”€β”€ package.json # Project dependencies & scripts β”‚ └── README.md # Project documentation
Last updated on