An open API service indexing awesome lists of open source software.

https://github.com/Kiranism/next-shadcn-dashboard-starter

Admin Dashboard Starter with Nextjs15 and shadcn ui
https://github.com/Kiranism/next-shadcn-dashboard-starter

admin-dashboard admin-panel dashboard nextjs-15-starter nextjs-admin nextjs-admin-template nextjs-boilerplate nextjs-template nextjs15 shadcn-admin shadcn-ui shadcn-ui-starter

Last synced: about 1 year ago
JSON representation

Admin Dashboard Starter with Nextjs15 and shadcn ui

Awesome Lists containing this project

README

          


Next.js Admin Dashboard Starter Template With Shadcn-ui

Built with the Next.js 15 App Router




View Demo


## Overview

This is a starter template using the following stack:

- Framework - [Next.js 15](https://nextjs.org/13)
- Language - [TypeScript](https://www.typescriptlang.org)
- Styling - [Tailwind CSS v4](https://tailwindcss.com)
- Components - [Shadcn-ui](https://ui.shadcn.com)
- Schema Validations - [Zod](https://zod.dev)
- State Management - [Zustand](https://zustand-demo.pmnd.rs)
- Search params state manager - [Nuqs](https://nuqs.47ng.com/)
- Auth - [Clerk](https://go.clerk.com/ILdYhn7)
- Tables - [Tanstack Data Tables](https://ui.shadcn.com/docs/components/data-table) โ€ข [Dice UI](https://www.diceui.com/docs/components/data-table)
- Forms - [React Hook Form](https://ui.shadcn.com/docs/components/form)
- Command+k interface - [kbar](https://kbar.vercel.app/)
- Linting - [ESLint](https://eslint.org)
- Pre-commit Hooks - [Husky](https://typicode.github.io/husky/)
- Formatting - [Prettier](https://prettier.io)

_If you are looking for a React admin dashboard starter, here is the [repo](https://github.com/Kiranism/react-shadcn-dashboard-starter)._

## Pages

| Pages | Specifications |
| :------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Signup / Signin](https://next-shadcn-dashboard-starter.vercel.app/auth/sign-up) | Authentication with **Clerk** provides secure authentication and user management with multiple sign-in options including passwordless authentication, social logins, and enterprise SSO - all designed to enhance security while delivering a seamless user experience. |
| [Dashboard (Overview)](https://next-shadcn-dashboard-starter.vercel.app/dashboard) | Cards with recharts graphs for analytics.Parallel routes in the overview sections with independent loading, error handling, and isolated component rendering . |
| [Product](https://next-shadcn-dashboard-starter.vercel.app/dashboard/product) | Tanstack tables with server side searching, filter, pagination by Nuqs which is a Type-safe search params state manager in nextjs |
| [Product/new](https://next-shadcn-dashboard-starter.vercel.app/dashboard/product/new) | A Product Form with shadcn form (react-hook-form + zod). |
| [Profile](https://next-shadcn-dashboard-starter.vercel.app/dashboard/profile) | Clerk's full-featured account management UI that allows users to manage their profile and security settings |
| [Kanban Board](https://next-shadcn-dashboard-starter.vercel.app/dashboard/kanban) | A Drag n Drop task management board with dnd-kit and zustand to persist state locally. |
| [Not Found](https://next-shadcn-dashboard-starter.vercel.app/dashboard/notfound) | Not Found Page Added in the root level |
| - | - |

## Feature based organization

```plaintext
src/
โ”œโ”€โ”€ app/ # Next.js App Router directory
โ”‚ โ”œโ”€โ”€ (auth)/ # Auth route group
โ”‚ โ”‚ โ”œโ”€โ”€ (signin)/
โ”‚ โ”œโ”€โ”€ (dashboard)/ # Dashboard route group
โ”‚ โ”‚ โ”œโ”€โ”€ layout.tsx
โ”‚ โ”‚ โ”œโ”€โ”€ loading.tsx
โ”‚ โ”‚ โ””โ”€โ”€ page.tsx
โ”‚ โ””โ”€โ”€ api/ # API routes
โ”‚
โ”œโ”€โ”€ components/ # Shared components
โ”‚ โ”œโ”€โ”€ ui/ # UI components (buttons, inputs, etc.)
โ”‚ โ””โ”€โ”€ layout/ # Layout components (header, sidebar, etc.)
โ”‚
โ”œโ”€โ”€ features/ # Feature-based modules
โ”‚ โ”œโ”€โ”€ feature/
โ”‚ โ”‚ โ”œโ”€โ”€ components/ # Feature-specific components
โ”‚ โ”‚ โ”œโ”€โ”€ actions/ # Server actions
โ”‚ โ”‚ โ”œโ”€โ”€ schemas/ # Form validation schemas
โ”‚ โ”‚ โ””โ”€โ”€ utils/ # Feature-specific utilities
โ”‚ โ”‚
โ”œโ”€โ”€ lib/ # Core utilities and configurations
โ”‚ โ”œโ”€โ”€ auth/ # Auth configuration
โ”‚ โ”œโ”€โ”€ db/ # Database utilities
โ”‚ โ””โ”€โ”€ utils/ # Shared utilities
โ”‚
โ”œโ”€โ”€ hooks/ # Custom hooks
โ”‚ โ””โ”€โ”€ use-debounce.ts
โ”‚
โ”œโ”€โ”€ stores/ # Zustand stores
โ”‚ โ””โ”€โ”€ dashboard-store.ts
โ”‚
โ””โ”€โ”€ types/ # TypeScript types
โ””โ”€โ”€ index.ts
```

## Getting Started

> [!NOTE]
> We are using **Next 15** with **React 19**, follow these steps:

Clone the repo:

```
git clone https://github.com/Kiranism/next-shadcn-dashboard-starter.git
```

- `pnpm install` ( we have legacy-peer-deps=true added in the .npmrc)
- Create a `.env.local` file by copying the example environment file:
`cp env.example.txt .env.local`
- Add the required environment variables to the `.env.local` file.
- `pnpm run dev`

You should now be able to access the application at http://localhost:3000.

> [!WARNING]
> After cloning or forking the repository, be cautious when pulling or syncing with the latest changes, as this may result in breaking conflicts.

Cheers! ๐Ÿฅ‚