hygkui / next15-shadcn-radix-template

Repository from Github https://github.comhygkui/next15-shadcn-radix-templateRepository from Github https://github.comhygkui/next15-shadcn-radix-template

Next.js 15 Advanced Template

πŸš€ Project Overview

This is a cutting-edge web application template integrating the latest technologies:

  • Next.js 15
  • React 19
  • TypeScript
  • Tailwind CSS
  • Shadcn UI
  • Radix UI
  • Turbopack

πŸ›  Prerequisites

  • Node.js 20+
  • pnpm (recommended)

🏁 Getting Started

1. Clone the Repository

git clone https://your-repo-url.git
cd your-project-name

2. Install Dependencies

pnpm install

3. Run Development Server

pnpm dev

Open http://localhost:3000 to view your application.

πŸ“¦ Adding Components

Shadcn UI Components

We use the latest shadcn@latest for adding UI components:

# Add a new component
pnpm dlx shadcn@latest add button
pnpm dlx shadcn@latest add card
pnpm dlx shadcn@latest add dialog

Radix UI Components

Radix UI components are pre-imported. To add new ones:

  1. Install the specific Radix package:
pnpm add @radix-ui/react-[component-name]
  1. Import in your component:
import * as ComponentName from '@radix-ui/react-[component-name]'

Custom Components

Create custom components in the components/ directory:

// components/MyCustomComponent.tsx
'use client'

import React from 'react'

export function MyCustomComponent() {
  return (
    <div>
      {/* Your custom component logic */}
    </div>
  )
}

πŸ”§ Configuration

Environment Variables

  1. Create a .env.local file in the project root
  2. Add your environment-specific configurations

Example:

NEXT_PUBLIC_API_URL=https://your-api.com
NEXT_PUBLIC_FEATURE_FLAG=true

🌐 Deployment

Vercel Deployment

Deploy with Vercel

Build for Production

pnpm build
pnpm start

πŸ“š Key Features

  • πŸ”₯ Cutting-edge Next.js 15 with React 19
  • πŸš€ Turbopack for lightning-fast development
  • 🎨 Shadcn UI and Radix UI components
  • πŸ’¨ Tailwind CSS for rapid styling
  • πŸ”’ TypeScript for type safety

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.

πŸŽ‰ Acknowledgements

About


Languages

Language:TypeScript 90.7%Language:JavaScript 5.0%Language:CSS 4.2%