An implementation of the Shadcn dashboard blocks with user interactivity like product filtering and navigation between pages. The data rendered on the pages is served by static API end points to avoid any external dependencies like a database.
It offers several good patterns for building an application with Next.js App router, Tailwind CSS, and Shadcn UI components. It also includes a complete example of a REST API with static data and a complete set of sample data. It includes a combination of server side and client side components and how to use them together as well as dynamic routing with Page and API routes.
Intl
API to format dates and currency amounts for concistent rendering on the server and client.First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
[x] Support routing to menu links [x] Update layout to use common dashboard for all pages [x] Fix mobile nav [x] Fix missing images (user and products) [x] Complete basic interactivity like filtering and order selection [x] Make the breadcumbs work [x] Add order details sample data for each order [x] Create date and currency components and use them consistently [x] Make filters work on each page [x] Add product details page from blocks [x] Move data into JSON files [ ] Add pages for all nav items [ ] Add example signin page [ ] Introduce Zod for type checking server API responses [ ] Verify if next/font is used [ ] Have common nav item for mobile and desktop
This is a Next.js project bootstrapped with create-next-app
.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.