This is a comprehensive React TypeScript application.
Comprehensive documentation is available in the /src/docs/
directory:
- Frontend: React 19.1.1 + TypeScript 5.8.3
- Build Tool: Vite 7.1.7
- Testing: Vitest 3.2.4 + Testing Library 16.3.0
- Routing: React Router DOM 7.9.3
- Code Quality: ESLint 9.36.0 + Prettier 3.6.2
- Node.js (v18 or higher)
- npm or yarn package manager
- Clone and Install
git clone <repository-url>
cd base-react-scaffolding
npm install
- Development Server
npm run dev
Opens application at http://localhost:5173
- Build for Production
npm run build
- Preview Production Build
npm run preview
# Start development server with hot reload
npm run dev
# Start development with verbose output
npm run dev -- --mode development
# Type check and build production bundle
npm run build
# Build with development dependencies
npm run build -- --mode development
# Preview built application
npm run preview
# Run ESLint across all files
npm run lint
# Run linting with auto-fix
npm run lint -- --fix
# Type checking only
npx tsc --noEmit
# Run all tests
npx vitest
# Run tests in watch mode
npx vitest --watch
# Run tests with coverage
npx vitest --coverage
# Run tests in CI mode
npx vitest --run
# Format code with Prettier
npx prettier --write .
# Check code formatting
npx prettier --check .
# Clean build artifacts
rm -rf dist/
# Clean node modules and reinstall
rm -rf node_modules package-lock.json && npm install
src/
├── components/ # Reusable UI components
├── pages/ # Route-based page components
├── hooks/ # Custom React hooks
├── context/ # React Context providers
├── utils/ # Utility functions and helpers
├── styles/ # Global styles and theme
├── docs/ # Project documentation
│ ├── use-cases.md # Detailed use cases documentation
│ └── test-scenarios.md # Comprehensive test scenarios
└── assets/ # Static assets (images, icons, etc.)
- Unit Tests: Individual component and hook testing
- Integration Tests: API integration and data flow
- End-to-End Tests: Complete conversion workflows
# Set up test environment
npm run test:setup
# Run all test suites
npm run test:all
# Run specific test categories
npm run test:unit
npm run test:integration
npm run test:e2e
# Development
npm run serve:dev
# Staging
npm run serve:staging
# Production
npm run serve:prod
- Create feature branch from
main
- Implement changes with tests
- Run linting and formatting
- Submit pull request for review
- TypeScript strict mode enabled
- ESLint configuration enforced
- Prettier formatting standards
- Conventional commit messages
For technical questions or issues:
- Check documentation in
/src/docs/
This project is licensed under the terms specified in the LICENSE file.
Built with ⚡ React + TypeScript + Vite for modern web development