BetterDash is a production-ready admin dashboard starter kit designed to accelerate your development. Built on the latest web standards, it combines the speed of Vite with the type-safety of TanStack Router and the flexibility of Better Auth.
- Authentication: Secure, fully typed authentication powered by Better Auth.
- UI Components: Beautiful, accessible components from Shadcn UI.
- Routing: Type-safe, file-based routing with TanStack Router.
- Database: Ready-to-use Prisma ORM setup.
- Styling: Modern styling with Tailwind CSS v4.
- Modules: Includes pre-built modules for Users, Tasks, Settings, and more.
- Forms: Robust form handling with React Hook Form and Zod.
- Framework: React + Vite
- Language: TypeScript
- Routing: TanStack Router
- Styling: Tailwind CSS
- UI Library: Shadcn UI
- Auth: Better Auth
- Database: Prisma
- State Management: TanStack Query (via Router)
- Node.js (v18 or later)
- pnpm (recommended), npm, or yarn
-
Clone the repository:
git clone https://github.com/MuhammadNabeelNisarWorkspace/betterdash.git cd betterdash -
Install dependencies:
pnpm install
-
Environment Setup:
Copy the example environment file and configure your variables (Database URL, Auth secrets, etc.).
cp .env.example .env
-
Database Setup:
Push the Prisma schema to your database.
pnpm db:push
-
Run the development server:
pnpm dev
The application will be available at
http://localhost:3000.
pnpm dev: Start the development server.pnpm build: Build the application for production.pnpm start: Preview the production build.pnpm test: Run tests with Vitest.pnpm lint: Lint the codebase.pnpm format: Format code with Prettier.pnpm db:push: Push Prisma schema changes to the database.pnpm db:studio: Open Prisma Studio to view/edit data.
src/
├── assets/ # Static assets
├── components/ # Reusable UI components
├── features/ # Feature-based modules (auth, dashboard, users, etc.)
├── hooks/ # Custom React hooks
├── lib/ # Utility functions and configurations
├── routes/ # TanStack Router file-based routes
├── server-fn/ # Server-side functions
└── styles/ # Global styles
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.