npm.io
1.0.8 • Published 2 years agoCLI

create-shadcn-dashboard

Licence
The Unlicense
Version
1.0.8
Deps
5
Size
191 kB
Vulns
0
Weekly
0
Stars
4

Create Shadcn Dashboard

A CLI tool to quickly set up a Next.js dashboard with Shadcn UI components and authentication.

Features

Getting Started

To create a new dashboard project, run:

npx create-shadcn-dashboard my-app
Initial

To add a new page, run:

npx create-shadcn-dashboard my-app
Add Page

To add a new API route, run:

npx create-shadcn-dashboard add route 
Add Route

This also supports advanced route names such as "npx create-shadcn-dashboard add route users/[id]/info" or other Nextjs route patterns.

Running your app

cd my-app
npm run dev
Running your app
Photo Gallery (Click to expand)
Description Image
Login screen (Dark mode) Login screen
Dashboard (Dark mode) Dashboard
Login screen (Light mode) LS Light
Dashboard (Light mode) DB Light

Notes

Notes (Click to expand)
  • When starting your dashboard, you may find that the auth system lets you login with any set of emails or passwords, and that is because by default the auth.config.ts file doesnt check for anything.
  • You can add your own providers to the auth.config.ts file and that will be used to check for valid logins.

Keywords