next-15-admin-dashboard

Stars
5

Build Dashboard App By Next.js 15, Drizzle ORM and Shadcn

Tech Next.js 15, React 19, PostgreSQL, Drizzle Orm, Shadcn, Tailwind
UI Tailwind, Shadcn, recharts
Database PostgreSQL, Drizzle Orm
Deployment Github, Vercel
Authentication Auth.js
Others zod , next-theme, ...

Watch Video Tutorial

View Demo Website

https://next-15-admin-dashboard.vercel.app

What you will learn

  • creating admin dashboard web app by next.js 15 and react 19
  • designing header, footer, sidebar, menu and search box by shadcn and tailwind
  • enable partial pre-rendering to improve website performance
  • create database models by drizzle orm and postgres database to handle invoices, customers and users.
  • handling form inputs by useActionState and Zod data validator
  • updating data by server actions without using any api
  • rendering beautiful charts by recharts
  • handling authentication and authorization by next-auth
  • and toggling dark and light theme by next-theme
  • at the end you'll learn how to deploy admin dashboard on vercel.

Run Locally

  1. Clone repo

     $ git clone [email protected]:basir/next-pg-shadcn-ecommerce.git
     $ cd next-pg-shadcn-ecommerce
    
  2. Create .env.local File

    • duplicate .env.example and rename it to .env.local
  3. Setup PostgreSQL

  4. Install and Run

      npm install
      npm run dev
    
  5. Seed Data

      npx tsx ./db/seed
    
  6. Admin Login

Lessons

  1. create home page
  2. create login page
  3. create dashboard page
  4. connect to database by drizzle orm
  5. load stats boxes data from database
  6. display revenue chart
  7. create latest invoices table
  8. authenticate user from database
  9. list or delete invoices
  10. create or update invoices
  11. list customers
  12. enable partial pre-rendering
  13. deploy app on vercel

Contact Developer

Email: [email protected]