Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Simple boilerplate for React, Typescript, Tailwind CSS and Github Pages powered by Vite.

Notifications You must be signed in to change notification settings

jhordyess/react-tailwind-ts-boilerplate

Repository files navigation

React Tailwind CSS and TypeScript Boilerplate

This is a simple boilerplate project for starting a web development project using React, Typescript, Tailwind CSS, Eslint, Prettier, Husky and Github Pages powered by Vite.

Features

Getting Started

  1. Clone the repository:
git clone https://github.com/jhordyess/react-tailwind-ts-boilerplate.git
  1. Navigate to the project folder:
cd react-tailwind-ts-boilerplate
  1. Install dependencies:
yarn

# With npm
npm install
  1. Start the development server:
yarn dev

# With npm
npm run dev
  1. Open your browser and visit http://localhost:5173 to see your project.

Project Structure

react-tailwind-ts-boilerplate/
├── .husky/ Husky configuration folder.
│   ├── pre-push Git hook to run the linter before pushing.
├── src/ Source code folder.
│   ├── Home.tsx Home page component.
│   ├── index.css Global CSS file.
│   ├── main.tsx Main JavaScript file.
│   ├── vite-env.d.ts Vite types file.
├── .eslintrc.json Eslint configuration file.
├── .gitignore Git ignore file.
├── .prettierrc.json Prettier configuration file.
├── index.html Entry point HTML file.
├── package.json Project configuration and dependencies.
├── postcss.config.js PostCSS configuration file.
├── README.md Project README file.
├── tailwind.config.js Tailwind CSS configuration file.
├── tsconfig.json TypeScript configuration file.
├── tsconfig.node.json TypeScript project references configuration file.
├── vite.config.ts Vite configuration file.

Commands

Start the development server

yarn dev

# With npm
npm run dev

Build the project for production

yarn build

# With npm
npm run build

Preview the project before production

yarn preview

# With npm
npm run preview

Lint the project

yarn lint

# With npm
npm run lint

Format the project

yarn format

# With npm
npm run format

Deploy the project to GitHub Pages

yarn deploy

# With npm
npm run deploy

Contributing

Contributions are welcome! If you find any issues or want to enhance the project, feel free to submit a pull request.


Happy coding!