Skip to Content
šŸš€ Nextall v2.1.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