Skip to content

jdsalasca/childcare-front

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏫 Childcare Management System

CI/CD Pipeline CodeQL

Maintainability Security Rating Dependencies License Version

A comprehensive childcare management system built with React, TypeScript, and modern web technologies.

🌟 Features

  • πŸ‘Ά 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)

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Yarn package manager
  • Git

Installation

# 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 Commands

# 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 audit

πŸ—οΈ Project Structure

childcare-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

πŸ§ͺ Testing

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

πŸ“Š Code Quality & Metrics

Automated Quality Checks

  • 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

Quality Gates

  • βœ… All tests must pass
  • βœ… Code coverage β‰₯ 70%
  • βœ… No ESLint errors
  • βœ… No TypeScript errors
  • βœ… No security vulnerabilities
  • βœ… Bundle size within limits

πŸ”’ Security

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

πŸ“ˆ Performance

  • Bundle Analysis: Automated bundle size tracking
  • Performance Monitoring: Core Web Vitals tracking
  • Optimization: Code splitting and lazy loading
  • Caching: Efficient caching strategies

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for your changes
  5. Ensure all tests pass (yarn test)
  6. Run quality checks (yarn lint && yarn type-check)
  7. Commit your changes (git commit -m 'Add amazing feature')
  8. Push to the branch (git push origin feature/amazing-feature)
  9. Open a Pull Request

Code Style

  • 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

πŸ“‹ Architecture

Tech Stack

  • 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

Key Patterns

  • 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

πŸ“š Documentation

πŸš€ Deployment

Environment Variables

VITE_API_BASE_URL=https://api.example.com
VITE_APP_NAME=Childcare Management
VITE_APP_VERSION=1.0.0

Production Build

# Build for production
yarn build

# Preview production build
yarn preview

# Deploy to your hosting platform
# (Configure your deployment pipeline)

πŸ“Š Project Metrics

  • Lines of Code: ~15,000+
  • Components: 50+
  • Test Coverage: 70%+
  • Dependencies: Actively maintained
  • Performance Score: 95+

πŸ› Issue Reporting

Found a bug? Please use our Bug Report Template

✨ Feature Requests

Have an idea? Use our Feature Request Template

πŸ“„ License

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

πŸ™ Acknowledgments

  • React team for the amazing framework
  • PrimeReact for the UI components
  • Vite for the build tool
  • All contributors who help improve this project

πŸ“ž Support


Made with ❀️ by the Childcare Management Team

⭐ Star us on GitHub β€’ πŸ› Report Bug β€’ ✨ Request Feature

About

React project por php backend

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages