A modern React application built with Vite, TypeScript, Tailwind CSS, and includes testing with Vitest.
- ⚡️ Vite - Fast build tool
- ⚛️ React 18 - UI library
- 📘 TypeScript - Type safety
- 🎨 Tailwind CSS - Utility-first CSS
- 🧪 Vitest - Unit testing
- 🧹 ESLint - Code linting
- ✨ Prettier - Code formatting
npm installStart the development server:
npm run devThe app will be available at http://localhost:5173
Build for production:
npm run buildPreview the production build locally:
npm run previewnpm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm test- Run testsnpm test:ui- Run tests with UInpm test:coverage- Generate coverage reportnpm run lint- Lint code
See PROJECT_STRUCTURE.md for detailed architecture documentation and best practices.
- 📁 Organized folder structure - Components, layouts, pages, hooks, and utils in separate folders
- 🧪 Testing ready - Vitest configured with React Testing Library
- 🎨 Tailwind CSS - Pre-configured with base styles
- 📏 Strict TypeScript - No
anytypes allowed - ✨ Code quality - ESLint and Prettier configured
src/
├── components/ # Reusable UI components
├── layouts/ # Page layout components
├── pages/ # Page-level components
├── hooks/ # Custom React hooks
├── utils/ # Utility functions
├── types/ # TypeScript type definitions
├── styles/ # Global styles
├── tests/ # Test setup and utilities
└── assets/ # Static assets
Each feature should be in its own folder with all related files (component, tests, styles).
- Follow the project structure guidelines in PROJECT_STRUCTURE.md
- Write tests for new components and features
- Run linting before committing:
npm run lint - Ensure all tests pass:
npm test
MIT