π 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 documentationLast updated on