Vite React Shadcn Demo is a React-based application built with Vite, TypeScript, ShadCN UI, and Tailwind CSS.
Before you begin, ensure you have the following installed on your system:
- Node.js (version 14 or higher)
- npm (usually comes with Node.js)
-
Clone the repository:
git clone https://github.com/VoloBuilds/vite-react-shadcn-demo.git cd vite-react-shadcn-demo
-
Install the dependencies:
npm install
To start the development server:
npm run dev
This will start the Vite development server. Open your browser and navigate to http://localhost:5173
to view the application.
To build the application for production:
npm run build
This will create a dist
folder with the production-ready files.
npm run lint
: Run ESLint to check for code quality and style issues.npm run preview
: Preview the production build locally.
The main application code is located in the src
directory:
src/App.tsx
: The main application componentsrc/components/
: Reusable React componentssrc/lib/
: Utility functions and helperssrc/index.css
: Global styles and Tailwind CSS imports
- React
- TypeScript
- Vite
- Tailwind CSS
- shadcn/ui components
tsconfig.json
: TypeScript configurationtailwind.config.js
: Tailwind CSS configurationvite.config.ts
: Vite configurationeslint.config.js
: ESLint configuration
For more details on the project setup and configuration, refer to the respective configuration files in the project root.
If starting a project from scratch, see this guide on how to use shadcn/ui with vite here: https://ui.shadcn.com/docs/installation/vite
Also see the Cursor tutorial relating to this project here: https://youtu.be/PlQPSkIUdIk