A comprehensive childcare management system built with React, TypeScript, and modern web technologies.
- πΆ Child Management: Complete child profiles with medical information, permissions, and formulas
- π° Bills & Payments: Daily cash record management with PDF report generation
- π Cash Register: Opening/closing cash register with detailed money tracking
- π Contracts: Digital contract generation and management
- π¦ Financial Reports: Comprehensive financial reporting and analytics
- π Security: Role-based access control and data protection
- π± Responsive Design: Mobile-first approach with modern UI/UX
- π Internationalization: Multi-language support (English/Spanish)
- Node.js 18+
- Yarn package manager
- Git
# Clone the repository
git clone https://github.com/your-username/childcare-front.git
cd childcare-front
# Install dependencies
yarn install
# Start development server
yarn dev
# Open http://localhost:3000 in your browser# Development
yarn dev # Start development server
yarn build # Build for production
yarn preview # Preview production build
# Testing
yarn test # Run tests
yarn test:watch # Run tests in watch mode
yarn test:coverage # Run tests with coverage
yarn test:ui # Run tests with UI
# Code Quality
yarn lint # Run ESLint
yarn lint:fix # Fix ESLint issues
yarn format # Format code with Prettier
yarn type-check # Run TypeScript checks
# Analysis
yarn analyze # Analyze bundle size
yarn audit # Security auditchildcare-front/
βββ π .github/ # GitHub workflows and templates
β βββ workflows/ # CI/CD pipelines
β βββ ISSUE_TEMPLATE/ # Issue templates
β βββ pull_request_template.md
βββ π public/ # Static assets
βββ π src/
β βββ π components/ # React components
β β βββ bills/ # Bills management
β β βββ contracts/ # Contract management
β β βββ deposits/ # Cash register
β β βββ users/ # User management
β βββ π models/ # API models and hooks
β βββ π types/ # TypeScript definitions
β βββ π utils/ # Utility functions
β βββ π assets/ # Styles and assets
β βββ π test/ # Test files
βββ π package.json
βββ π tsconfig.json
βββ π vite.config.js
βββ π vitest.config.ts
We maintain high code quality with comprehensive testing:
- Unit Tests: Component and utility function testing
- Integration Tests: API and workflow testing
- Coverage: Minimum 70% code coverage requirement
- E2E Tests: Critical user journey testing
# Run all tests
yarn test
# Run tests with coverage
yarn test:coverage
# Run specific test file
yarn test src/components/bills/Bills.test.tsx
# Run tests in watch mode
yarn test:watch- ESLint: Code linting and style enforcement
- Prettier: Code formatting
- TypeScript: Type checking and safety
- Vitest: Fast unit testing
- CodeQL: Security vulnerability scanning
- Dependabot: Automated dependency updates
- β All tests must pass
- β Code coverage β₯ 70%
- β No ESLint errors
- β No TypeScript errors
- β No security vulnerabilities
- β Bundle size within limits
Security is a top priority. We implement:
- CodeQL Analysis: Automated security scanning
- Dependency Scanning: Vulnerability detection in dependencies
- Snyk Integration: Continuous security monitoring
- OWASP Compliance: Following security best practices
- Regular Audits: Weekly security audits
- Bundle Analysis: Automated bundle size tracking
- Performance Monitoring: Core Web Vitals tracking
- Optimization: Code splitting and lazy loading
- Caching: Efficient caching strategies
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests for your changes
- Ensure all tests pass (
yarn test) - Run quality checks (
yarn lint && yarn type-check) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style
- Use TypeScript for type safety
- Write tests for new functionality
- Keep functions small and focused
- Use meaningful variable names
- Add comments for complex logic
- Frontend: React 18, TypeScript, Vite
- UI Library: PrimeReact, Tailwind CSS
- State Management: React Hook Form, React Query
- Testing: Vitest, React Testing Library
- Build Tool: Vite
- Package Manager: Yarn
- Component Architecture: Modular, reusable components
- Custom Hooks: Business logic separation
- API Layer: Centralized API management
- Type Safety: Comprehensive TypeScript usage
- Error Handling: Graceful error boundaries
VITE_API_BASE_URL=https://api.example.com
VITE_APP_NAME=Childcare Management
VITE_APP_VERSION=1.0.0# Build for production
yarn build
# Preview production build
yarn preview
# Deploy to your hosting platform
# (Configure your deployment pipeline)- Lines of Code: ~15,000+
- Components: 50+
- Test Coverage: 70%+
- Dependencies: Actively maintained
- Performance Score: 95+
Found a bug? Please use our Bug Report Template
Have an idea? Use our Feature Request Template
This project is licensed under the MIT License - see the LICENSE file for details.
- React team for the amazing framework
- PrimeReact for the UI components
- Vite for the build tool
- All contributors who help improve this project
- π§ Email: [email protected]
- π¬ Discord: Join our community
- π Documentation: Full docs
Made with β€οΈ by the Childcare Management Team
β Star us on GitHub β’ π Report Bug β’ β¨ Request Feature