Coder Social home page Coder Social logo

shadcn-ui-react-ts-template's Introduction

React + Vite + TypeScript Template (react-vite-ui)

License

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:

  1. Clone the repository:

    git clone https://github.com/thangdevalone/shadcn-ui-react-ts-template.git
  2. Navigate to the project directory:

    cd react-vite-ui
  3. Install the dependencies:

    yarn
  4. Start the development server:

    yarn dev

๐Ÿ“œ Available Scripts

  • yarn dev - Starts the development server.
  • yarn build - Builds the production-ready code.
  • yarn lint - Runs ESLint to analyze and lint the code.
  • yarn preview - Starts the Vite development server in preview mode.

๐Ÿ“‚ Project Structure

The project structure follows a standard React application layout:

shadcn-ui-react-ts-template/
  โ”œโ”€โ”€ 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
  โ”œโ”€โ”€ .eslintrc.json     # ESLint configuration
  โ”œโ”€โ”€ index.html         # HTML entry point
  โ”œโ”€โ”€ postcss.config.js  # PostCSS configuration
  โ”œโ”€โ”€ tailwind.config.js # 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.

shadcn-ui-react-ts-template's People

Contributors

thangdevalone avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.