A modern, production-ready React web application template designed to jumpstart your next project with industry best practices, comprehensive tooling, and a robust development workflow.
Experience the template in action:
- Live Application Demo - See the main application
- Storybook Component Library - Explore the component documentation
This template provides a complete modern web development stack with everything you need to build scalable applications:
- React 19 - Latest React with concurrent features and improved performance
- TypeScript - Type-safe JavaScript for better developer experience and fewer runtime errors
- Vite - Lightning-fast development server and optimized production builds
- Turborepo - High-performance monorepo build system for scalable development
- Tailwind CSS - Utility-first CSS framework for rapid UI development
- DaisyUI - Beautiful, semantic component library built on Tailwind
- Responsive Design - Mobile-first approach with modern CSS Grid and Flexbox layouts
- Vitest - Fast unit and integration testing with hot reload
- Playwright - Reliable end-to-end testing across all browsers
- Storybook Component Testing - Visual component testing and documentation
- Code Coverage Reports - Comprehensive coverage tracking with detailed reporting
- Storybook - Component development environment and documentation
- ESLint - Advanced linting with React and TypeScript rules
- Prettier - Consistent code formatting across the entire codebase
- Hot Module Replacement - Instant feedback during development
- GitHub Actions - Automated CI/CD pipeline with comprehensive testing
- GitHub Pages - Seamless deployment and hosting
- Automated Quality Gates - Build, lint, and test validation on every pull request
- Branch Protection Rules - Enforce code quality standards before merging
- Mock API Server - Mocks Server integration for frontend development
- Internationalization Ready - Built-in i18n support with React Intl
- Environment Configuration - Multi-environment setup with proper variable management
- Performance Monitoring - Build-time performance analysis and optimization
Get up and running in minutes:
- Node.js 22 or higher
- pnpm (recommended package manager)
-
Clone the repository
git clone https://github.com/Pettor/template-web-app-react.git cd template-web-app-react
-
Enable corepack for package manager
corepack enable
-
Install dependencies
pnpm install
-
Start development server
pnpm dev
Your application will be available at http://localhost:5173
with hot reload enabled.
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm test
- Run unit testspnpm test:e2e
- Run end-to-end testspnpm lint
- Run ESLintpnpm storybook
- Start Storybook development serverpnpm deploy
- Build and prepare for deployment
Enable continuous integration and deployment:
- Navigate to repository Settings β Actions
- Enable "Allow all actions"
- Go to Settings β Rules and create a branch protection rule:
- Name: Main
- Target: Include default branch
- Required status checks:
Lint
,Build
,Test Components
,Test E2E
Set up automatic deployment:
- Go to Settings β Pages
- Select Source: Deploy from a branch
- Choose Branch:
deploy/main
- Update README links to match your repository URL
βββ apps/
β βββ web/ # Main React application
βββ configs/ # Shared configs
βββ packages/ # Shared packages and utilities
βββ .github/
β βββ workflows/ # CI/CD pipeline definitions
βββ output/ # Build artifacts
βββ storybook-static/ # Storybook build output
Expand your development stack:
- .NET 8 Backend Template - Fully integrated C# backend template designed to work seamlessly with this React frontend
We welcome contributions! Here's how to get involved:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes and add tests
- Run the test suite:
pnpm test && pnpm test:e2e
- Submit a pull request with a clear description
- Follow existing code style and conventions
- Add tests for new features
- Update documentation as needed
- Ensure all CI checks pass
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Storybook Documentation
Ready to build something amazing? π Star this repository if you find it helpful and share it with your team!