Skip to content

Latest commit

 

History

History
127 lines (89 loc) · 3.66 KB

File metadata and controls

127 lines (89 loc) · 3.66 KB

Contributing to Studio Admin

Thanks for showing interest in improving Studio Admin (repo: next-shadcn-admin-dashboard).
This guide will help you set up your environment and understand how to contribute.


Overview

This project is built with Next.js 16, TypeScript, Tailwind CSS v4, and Shadcn UI.
The goal is to keep the codebase modular, scalable, and easy to extend.


Project Layout

We use a colocation-based file system. Each feature keeps its own pages, components, and logic.

src
├── app               # Next.js routes (App Router)
│   ├── (auth)        # Auth layouts & screens
│   ├── (main)        # Main dashboard routes
│   │   └── (dashboard)
│   │       ├── crm
│   │       ├── finance
│   │       ├── default
│   │       └── ...
│   └── layout.tsx
├── components        # Shared UI components
├── hooks             # Reusable hooks
├── lib               # Config & utilities
├── styles            # Tailwind / theme setup
└── types             # TypeScript definitions

If you’d like a more detailed example of this setup, check out the Next Colocation Template, where the full structure is explained with examples.


Getting Started

Fork and Clone the Repository

  1. Fork the Repository

    Click here to fork the repository.

  2. Clone the Repository

    git clone https://github.com/YOUR_USERNAME/next-shadcn-admin-dashboard.git
  3. Navigate into the Project

    cd next-shadcn-admin-dashboard
  4. Install dependencies

    npm install
  5. Run the dev server

    npm run dev

    App will be available at http://localhost:3000.


Contribution Flow

  • Always create a new branch before working on changes:

    git checkout -b feature/my-update
  • Use clear commit messages:

    git commit -m "feat: add finance dashboard screen"
  • Open a Pull Request once ready.

  • If your change adds a new UI screen or component, include a screenshot in your PR description.


Where to Contribute

  • External Pages: Landing pages or other non-dashboard routes → src/app/(external)/
  • Auth Screens: Login, register, and authentication layouts → src/app/(main)/auth/
  • Dashboard Screens: Feature dashboards like CRM, Finance, Analytics → src/app/(main)/dashboard/
  • Components: Reusable UI goes in src/components/
  • Hooks: Custom logic goes in src/hooks/
  • Themes: New presets under src/styles/presets/

Guidelines

  • Prefer TypeScript types over any
  • Husky pre-commit hooks are enabled - linting and formatting run automatically when you commit, and if there are errors the commit will be blocked until they are fixed.
  • Follow Shadcn UI style & Tailwind v4 conventions
  • Keep accessibility in mind (ARIA, keyboard nav)
  • Use clear commit messages with conventional prefixes (feat:, fix:, chore:, etc.)
  • Avoid unnecessary dependencies — prefer existing utilities where possible

Submitting PRs

  • Open a Pull Request once your changes are ready.
  • Ensure your branch is up to date with main before submitting.
  • Reference any related issue in your PR for context.

Questions & Support


Your contributions keep this project growing. 🚀

Happy Vibe Coding!