A modern starter template for building React applications with Vite, TypeScript, and Shadcn UI components.
- ⚡ Vite: Fast build tool and development server
- ⚛️ React 19: Latest React with TypeScript support
- 🎨 Shadcn UI: Beautiful and accessible UI components
- 🎨 Tailwind CSS: Utility-first CSS framework
- 🔧 ESLint: Code linting and formatting
- 📦 TypeScript: Type-safe development
- Node.js (version 18 or higher)
- npm or yarn
-
Clone the repository using one of the following commands:
SSH:
npx degit git@github.com:andreitere/vite-react-shadcn-starter.git my-app cd my-appHTTPS:
npx degit https://github.com/andreitere/vite-react-shadcn-starter.git my-app cd my-app -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:5173 in your browser.
npm run dev- Start the development servernpm run build- Build the project for productionnpm run lint- Run ESLint for code lintingnpm run preview- Preview the production build locally
src/
├── assets/ # Static assets
├── components/
│ └── ui/ # Shadcn UI components
├── lib/
│ └── utils.ts # Utility functions
├── styles/
│ └── index.css # Global styles
├── App.tsx # Main app component
└── main.tsx # App entry point
To add more components from Shadcn UI:
npx shadcn@latest add [component-name]For example:
npx shadcn@latest add inputContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.