How iamsheye/scrapper-fe works
Main Application Components
a) Frontend Architecture (Primary Layer)
• Client-Side Routing (using TanStack Router based on the routeTree.gen.ts)
• Component Layer
• Network Layer
• Authentication System
• Form Management
Component Organization
• Authentication Components
• Job Management Components
• User Profile Components
• Common UI Components
Data Flow Architecture
Interactions:
• API Communication Layer (src/network folder)
• Auth Service
• Jobs Service
• User Service
• Form Handling (useHookForm custom hook)
• Schema Validation (src/schemas)
• Rectangles: Core components
• Rounded rectangles: Services/APIs
• Hexagons: Authentication components
• Blue: Core application components
• Green: Authentication-related components
• Orange: Job-related features
• Gray: Utility services
• Double lines: Authentication flow
Layer Organization (Top to Bottom)
┌─────────────────────────────────────────┐
• UI Components │
• (Components from src/components) │
• ┤
• Route Handlers │
• (From src/routes directory) │
• ┤
• Network Layer │
• (API services from src/network) │
• ┤
• Schema Validation │
• (From src/schemas) │
• ┘
Key Features to Highlight
• Authentication Flow:
• Login/Signup
• Password Reset
• Email Verification
• Profile Management
• Job Alert System:
• Alert Creation
• Alert Management
• Job Viewing
Technical Stack Elements
• Vite (Build Tool)
• React + TypeScript
• TanStack Router
• Axios for API calls
• Tailwind CSS
• Playwright (Testing)
The protected routes structure (_auth_routes)
Remember to show how the components communicate with the backend services through the network layer, and how the authentication state affects the routing and component rendering.