React + Vite + TypeScript Template (react-vite-ui)
A React + Vite template powered by shadcn/ui.
π Features
- React - A JavaScript library for building user interfaces.
- Vite - A fast, opinionated frontend build tool.
- TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
- Tailwind CSS - A utility-first CSS framework.
- Tailwind Prettier Plugin - A Prettier plugin for formatting Tailwind CSS classes.
- ESLint - A pluggable linting utility for JavaScript and TypeScript.
- PostCSS - A tool for transforming CSS with JavaScript.
- Autoprefixer - A PostCSS plugin to parse CSS and add vendor prefixes.
- shadcn/ui - Beautifully designed components that you can copy and paste into your apps.
βοΈ Prerequisites
Make sure you have the following installed on your development machine:
- Node.js (version 16 or above)
- pnpm (package manager)
π Getting Started
Follow these steps to get started with the react-vite-ui template:
Clone the repository:
git clone https://github.com/dan5py/react-vite-ui.git
Navigate to the project directory:
cd react-vite-ui
Install the dependencies:
pnpm install
Start the development server:
pnpm dev
π Available Scripts
- pnpm dev - Starts the development server.
- pnpm build - Builds the production-ready code.
- pnpm lint - Runs ESLint to analyze and lint the code.
- pnpm preview - Starts the Vite development server in preview mode.
π Project Structure
The project structure follows a standard React application layout:
react-vite-ui/
βββ node_modules/ # Project dependencies
βββ public/ # Public assets
βββ src/ # Application source code
β βββ components/ # React components
β β βββ ui/ # shadc/ui components
β βββ styles/ # CSS stylesheets
β βββ lib/ # Utility functions
β βββ App.tsx # Application entry point
β βββ index.tsx # Main rendering file
βββ eslint.config.js # ESLint configuration
βββ index.html # HTML entry point
βββ postcss.config.js # PostCSS configuration
βββ tailwind.config.ts # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ vite.config.ts # Vite configuration
π License
This project is licensed under the MIT License. See the LICENSE file for details.