Starter built on the Minimal UI kit with all demo pages removed. Components, theme, layouts, auth (JWT) and i18n are kept.
- Next.js 16 (App Router), React 19
- MUI 9 (+ MUI X Data Grid / Date Pickers), Emotion
- React Hook Form + Zod
- i18next (en, fr, vi, cn, ar), RTL support
- Axios, Framer Motion, Iconify
- Node.js >= 22.12
cp .env.example .env
yarn install # or: npm install
yarn dev # http://localhost:3032| Script | Description |
|---|---|
dev |
Start dev server on port 3032 |
build / start |
Production build / serve |
lint / lint:fix |
ESLint |
fm:check / fm:fix |
Prettier |
fix:all |
Lint fix + format |
src/
├── app/ # Routes (App Router)
│ ├── (home)/ # "/" with MainLayout
│ ├── auth/jwt/ # sign-in, sign-up
│ ├── dashboard/ # AuthGuard + DashboardLayout
│ └── error/ # 403, 404, 500
├── assets/ # Inline SVG icons, illustrations, static data (countries)
├── auth/ # JWT context, guards, hooks, sign-in/up views
├── components/ # Reusable UI components (upload, editor, chart, table, hook-form, ...)
├── layouts/ # main, dashboard, simple, auth-split, auth-centered + nav configs
├── lib/ # axios instance + API endpoints
├── locales/ # i18n setup and translations
├── routes/ # paths.js, RouterLink, router hooks
├── sections/ # Page views (blank, error) — one folder per feature
├── theme/ # MUI theme, component overrides, settings
├── utils/ # format-number, format-time
└── global-config.js # App name, server url, auth config
- Path — add the route to
src/routes/paths.js:dashboard: { root: ROOTS.DASHBOARD, users: `${ROOTS.DASHBOARD}/users` },
- View — create
src/sections/users/view/users-view.jsx(+index.jsbarrel). Build the UI fromsrc/components. - Route — create
src/app/dashboard/users/page.jsxthat exportsmetadataand renders the view. - Navigation — add an item to
src/layouts/nav-config-dashboard.jsx(ornav-config-main.jsxfor public pages). - API — add endpoints to
src/lib/axios.js.
CONFIG.auth.method is jwt. The provider in src/auth/context/jwt talks to the NestJS boilerplate:
POST /api/v1/auth/login{ email, password }→{ accessToken, refreshToken, user }POST /api/v1/auth/register{ name, email, password }→{ accessToken, refreshToken, user }GET /api/v1/auth/me→ the user
The backend wraps responses as { success, message, data }; src/lib/axios.js unwraps them, so res.data is the payload.
Requests are relative (/api/...) unless NEXT_PUBLIC_SERVER_URL is set.
Set CONFIG.auth.skip = true in src/global-config.js to open the dashboard without signing in while building UI.
The layout header still uses a placeholder user (src/auth/hooks/use-mocked-user.js). Swap useMockedUser() for useAuthContext() once your API returns a real user.
launchpad.json describes how Launchpad runs this template: next dev / next start on port 3032 bound to
0.0.0.0, health check on /, npm run lint as the check. Launchpad routes /api to the backend and everything
else here, so leave NEXT_PUBLIC_SERVER_URL empty. next.config.mjs adds the LAUNCHPAD_PUBLIC_URL host to
allowedDevOrigins so HMR works on the public dev URL. Only NEXT_PUBLIC_* and LAUNCHPAD_* variables reach
the browser.
For local development without Launchpad, set NEXT_PUBLIC_SERVER_URL=http://localhost:3000 (the backend allows
cross-origin requests by default).
Component and theme docs for the underlying kit: https://docs.minimals.cc