Unified React Essential, An Essential Template to get started with react.js application with all the essentials included...
- ✨ Library: React with Vite - Fast and efficient development environment
- 🚀 Styling: Tailwind CSS - Utility-first CSS framework
- 💻 Language: TypeScript - Typed superset of JavaScript
- 🧹 Linting and Formatting: Biome.js - Fast and customizable linter and formatter
- 🎨 Themes: next-themes - Easy theming for React.js.
- 💄 Icons: lucide-react - A comprehensive set of icons for React.js
- ⚙️ Build: Github Actions - Automated workflows for CI/CD
- 🛠 Commit: Husky - Git hooks made easy
- 📦 Package: pnpm - Fast, disk space efficient package manager
- 🚀 Routing: TanStack Router - Type-safe routing for React
src/
: Source code directoryroutes/
: Contains all routes and pagesui/
: Contains all reusable components and primitiveslib/
: Includes helpers, utilities, and configuration filesstyles/
: Global styles and theme configuration
public/
: Static assets and images
- Clone the repository
- Install dependencies:
pnpm install
- Run the development server:
pnpm run dev
- Open http://localhost:5173 in your browser
- Keep components and primitives in the
src/ui/
folder - Place all routes and pages in the
src/routes/
folder - Store helpers, utilities, and configs in the
src/lib/
folder - Follow the TypeScript and Biome.js linting rules
- Use Husky pre-commit hooks to ensure code quality
- Modify the theme in
tailwind.config.ts
- Adjust global styles in
src/styles/root-layout.css
- Configure Vite settings in
vite.config.ts
pnpm run dev
: Start the development serverpnpm run build
: Build the production-ready applicationpnpm run typecheck
: Run TypeScript type checkingpnpm run lint
: Run Biome.js linterpnpm run lint:fix
: Run Biome.js linter and fix issuespnpm run format
: Format code using Biome.js
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Submit a pull request
For major changes, please open an issue first to discuss what you would like to change.