Marryme

Personal Development Rules - Wedding RSVP App

Phase 2 Implementation Guidelines

🎯 Priority Order

  1. Authentication First - Secure admin access is critical
  2. RSVP Enhancement - Core functionality improvement
  3. Admin Dashboard - Management interface
  4. Content Management - Dynamic content system

πŸ—οΈ Architecture Rules

Feature Module Structure

Each feature must have this exact structure:

src/features/{feature}/
β”œβ”€β”€ components/          # UI components specific to this feature
β”œβ”€β”€ hooks/              # Custom React hooks for this feature
β”œβ”€β”€ services/           # API calls and business logic
β”œβ”€β”€ types/              # Feature-specific types (extends shared types)
└── index.ts            # Clean exports only

Import Rules

Component Rules

πŸ”’ Security Rules

Authentication

Input Validation

πŸ§ͺ Testing Rules (Phase 3)

🎨 UI/UX Rules

Design System

Accessibility

πŸ“Š Performance Rules

React Optimization

Bundle Optimization

πŸ”„ Development Workflow

Before Starting Each Feature

  1. βœ… Update todo list with specific tasks
  2. βœ… Review existing types and components to reuse
  3. βœ… Plan the API contracts and data flow
  4. βœ… Identify potential security concerns
  5. βœ… Consider error handling scenarios

Implementation Order

  1. Types & Schemas - Define data structures first
  2. Services - Implement business logic and API calls
  3. Hooks - Create React hooks for state management
  4. Components - Build UI components last
  5. Integration - Wire everything together

Before Committing

  1. βœ… Run npm run lint - no warnings allowed
  2. βœ… Run npm run build - successful build required
  3. βœ… Test critical paths manually
  4. βœ… Check responsive design on mobile
  5. βœ… Update documentation if needed

🚨 Red Flags - Never Do This

πŸ“ Documentation Rules

Next Phase Goals

Phase 2 Success Criteria

Phase 3 Preparation