Skip to content

ramarivera/template-next-shadcn

Repository files navigation

✨ Next.js & Shadcn UI Template ✨

Use this template Deploy to Vercel

This is a feature-rich Next.js project template, supercharged with Shadcn UI, TypeScript, Tailwind CSS, and more, ready for you to build amazing applications! 🚀

🚀 Getting Started

To get your project up and running:

  1. Clone the template (or use it as a template on GitHub).

  2. Install dependencies using your preferred package manager:

    pnpm install
    # or
    yarn install
    # or
    npm install
    # or
    bun install
  3. Run the development server:

    pnpm dev
    # or
    yarn dev
    # or
    npm run dev
    # or
    bun dev

Open http://localhost:3000 with your browser to see the initial page.

You can start editing the main page by modifying src/app/page.tsx. The page auto-updates as you edit the file. 🪄

This template uses next/font to automatically optimize and load Geist, a versatile font family.

🛠️ Project Configuration

This project comes pre-configured with a modern development stack:

  • 🔷 TypeScript
  • 💨 Tailwind CSS (v4)
  • 🎨 Shadcn UI (for beautiful, accessible UI components)
  • ESLint & Prettier (for code linting & formatting)
  • 🤖 Cursor AI Rules (for enhanced AI-assisted development)

🧹 Linting and Formatting

Keep your code clean and consistent:

  • Lint your code: pnpm lint (or yarn lint / npm run lint)
  • Automatically fix linting issues: pnpm lint:fix
  • Format your code: pnpm format

🧩 Shadcn UI

Shadcn UI components are added directly to your project via its CLI.

To add a new component (e.g., a button):

pnpm dlx shadcn@latest add button

Dive deeper with the .cursor/rules/shadcn-ui-installation.mdc rule for more details.

🤖 Cursor AI Rules

Enhance your development workflow with Cursor AI Rules located in the .cursor/rules/ directory. These rules guide the AI, ensuring it understands your project's conventions and structure.

Key rules included:

  • project-structure.mdc: 🗺️ Overview of the project's file and directory layout.
  • shadcn-ui-installation.mdc: 🛠️ Instructions for adding and managing Shadcn UI components.
  • nextjs-conventions.mdc: 📜 Best practices for Next.js development within this template.

Leverage these rules in Cursor chat (e.g., by typing @project-structure) or let the AI use them automatically.

📚 Learn More about Next.js

To learn more about the power of Next.js, check out these resources:

The Next.js GitHub repository is also a great place for community support and contributions.

☁️ Deploy Your App

When you're ready to share your creation with the world, the Vercel Platform (from the creators of Next.js) offers a seamless deployment experience.

For more deployment options and details, see the Next.js deployment documentation.

About

Personal and opinionated template for quick prototyping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published