πππ Boilerplate and Starter for React.js, Material-UI, Tailwind CSS and TypeScript β‘οΈ Made with developer experience first: React.js, TypeScript, Axios, ESLint, Prettier, Husky, Lint-Staged, VSCode, PostCSS, Tailwind CSS.
Clone this project and use it to create your own React.js project.
- β‘ React.js
- β‘ Material-UI
- π₯ Type checking TypeScript
- π Integrate with Tailwind CSS
- β Strict Mode for TypeScript and React 18
- π Linter with ESLint (default NextJS, NextJS Core Web Vitals, Tailwind CSS and Airbnb configuration)
- π Code Formatter with Prettier
- π¦ Husky for Git Hooks
- π« Lint-staged for running linters on Git staged files
- π VSCode configuration: Debug, Settings, Tasks and extension for PostCSS, ESLint, Prettier, TypeScript, Jest
- Node.js 16+ and pnpm
Run the following command on your local environment:
git clone --depth=1 https://github.com/sonht113/react-boilerplate-for-starter.git
cd my-project-name
pnpm install
Then, you can run locally in development mode with live reload:
pnpm run dev
Open http://localhost:5173 with your favorite browser to see your project.
.
βββ README.md # README file
βββ .github # GitHub folder
βββ .husky # Husky configuration
βββ public # Public assets folder
βββ src
β βββ apis # Common apis folder
β βββ components # Component folder
β βββ data # Data constants JS Pages
β βββ features # Features folder
β βββ hooks # Hooks customs folder
β βββ layout # Layout Pages
β βββ pages # React JS Pages
β βββ provider # Provider folder
β βββ routes # Routes folder
β βββ ts # Type and Enum folder
β βββ utils # Utility functions
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
src/index.css
: your CSS file using Tailwind CSSsrc/main.tsx
: default theme
You have access to the whole code source if you need further customization. The provided code is only example for you to start your project. The sky is the limit π.
Made with β₯ by TrongSon