Skip to content

Modern React 19 web application template with TypeScript, Vite, Turborepo, TailwindCSS, DaisyUI, comprehensive testing (Vitest, Playwright, Storybook), CI/CD pipeline, and production-ready tooling for rapid development.

License

Notifications You must be signed in to change notification settings

Pettor/template-web-app-react

Repository files navigation

React Web Application Template

GitHub Actions Main Storybook

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.

πŸš€ Demo

Experience the template in action:

✨ Key Features

This template provides a complete modern web development stack with everything you need to build scalable applications:

πŸ—οΈ Core Technologies

  • 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

🎨 Styling & UI

  • 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

πŸ§ͺ Testing & Quality Assurance

  • 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

πŸ”§ Development Tools

  • 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

πŸš€ DevOps & Deployment

  • 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

🌐 Additional Integrations

  • 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

πŸƒβ€β™‚οΈ Quick Start

Get up and running in minutes:

Prerequisites

  • Node.js 22 or higher
  • pnpm (recommended package manager)

Installation

  1. Clone the repository

    git clone https://github.com/Pettor/template-web-app-react.git
    cd template-web-app-react
  2. Enable corepack for package manager

    corepack enable
  3. Install dependencies

    pnpm install
  4. Start development server

    pnpm dev

Your application will be available at http://localhost:5173 with hot reload enabled.

Available Scripts

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm test - Run unit tests
  • pnpm test:e2e - Run end-to-end tests
  • pnpm lint - Run ESLint
  • pnpm storybook - Start Storybook development server
  • pnpm deploy - Build and prepare for deployment

βš™οΈ Configuration

GitHub Actions Setup

Enable continuous integration and deployment:

  1. Navigate to repository Settings β†’ Actions
  2. Enable "Allow all actions"
  3. 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

GitHub Pages Deployment

Set up automatic deployment:

  1. Go to Settings β†’ Pages
  2. Select Source: Deploy from a branch
  3. Choose Branch: deploy/main
  4. Update README links to match your repository URL

πŸ—οΈ Project Structure

β”œβ”€β”€ 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

πŸ”— Related Templates

Expand your development stack:

  • .NET 8 Backend Template - Fully integrated C# backend template designed to work seamlessly with this React frontend

🀝 Contributing

We welcome contributions! Here's how to get involved:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Run the test suite: pnpm test && pnpm test:e2e
  5. Submit a pull request with a clear description

Contribution Guidelines

  • Follow existing code style and conventions
  • Add tests for new features
  • Update documentation as needed
  • Ensure all CI checks pass

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support


Ready to build something amazing? πŸš€ Star this repository if you find it helpful and share it with your team!

About

Modern React 19 web application template with TypeScript, Vite, Turborepo, TailwindCSS, DaisyUI, comprehensive testing (Vitest, Playwright, Storybook), CI/CD pipeline, and production-ready tooling for rapid development.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •