š 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