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.
- React as the UI library.
- TypeScript as the programming language.
- Tailwind CSS as the CSS framework.
- Vite as the build tool.
- Eslint as the linter.
- Prettier as the code formatter.
- Husky as the Git hooks manager.
- GitHub Pages as the hosting service.
- Clone the repository:
git clone https://github.com/jhordyess/react-tailwind-ts-boilerplate.git
- Navigate to the project folder:
cd react-tailwind-ts-boilerplate
- Install dependencies:
yarn
# With npm
npm install
- Start the development server:
yarn dev
# With npm
npm run dev
- Open your browser and visit http://localhost:5173 to see your project.
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.
yarn dev
# With npm
npm run dev
yarn build
# With npm
npm run build
yarn preview
# With npm
npm run preview
yarn lint
# With npm
npm run lint
yarn format
# With npm
npm run format
yarn deploy
# With npm
npm run deploy
Contributions are welcome! If you find any issues or want to enhance the project, feel free to submit a pull request.
Happy coding!