Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 1.95 KB

File metadata and controls

98 lines (65 loc) · 1.95 KB

Shadcn Admin

Production-ready admin dashboard powered by Next.js, Shadcn/UI and Better-Auth. Includes authentication flows, interactive charts, data tables, and a distinctive gradient-accented design system.

Image

Getting Started

1. Clone the repository

git clone https://github.com/Its-Nyein/shadcn-admin.git
cd shadcn-admin

2. Install dependencies

pnpm install

3. Set up environment variables

cp .env.example .env

Then update .env with your values.

4. Set up database

pnpm db:generate
pnpm db:migrate

5. Seed the database

pnpm db:seed

6. Run the development server

pnpm dev

Open http://localhost:3000 in your browser.

Test Credentials

After seeding the database, you can sign in with:

Docker Setup

1. Set up environment variables

cp .env.example .env

Then update .env with your values.

2. Build and run with Docker Compose

docker compose up --build

This will build the production image and start the app at http://localhost:3000.

3. Or build and run manually

docker build -t shadcn-admin .
docker run -p 3000:3000 --env-file .env shadcn-admin

Stop the container

docker compose down

Database Commands

Command Description
pnpm db:push Push schema to database
pnpm db:studio Open Drizzle Studio
pnpm db:generate Generate migrations
pnpm db:migrate Run migrations
pnpm db:seed Seed test user
pnpm db:seed -- --force Recreate test user