# fauzansyll/fauzan-fe-satudental-pokemon architecture

> Architecture diagram of the GitHub repository fauzansyll/fauzan-fe-satudental-pokemon, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fauzansyll/fauzan-fe-satudental-pokemon
- Repository: https://github.com/fauzansyll/fauzan-fe-satudental-pokemon

## Overview

##### Main Components

A. Frontend Layer (Client-Side):
- Divide into three main sections following Atomic Design:
- Atoms (basic components)
- Molecules (composite components)
- Organisms (complex components)
- Pages layer separately but connected to organisms

B. Application Layer:
- Next.js Server Components
- API Routes
- Data Fetching Layer

C. External Services:
- PokeAPI Integration
- Vercel Deployment

##### Component Relationships

**[Client Layer]**
- ↓
**[Next.js App Router]**
- ↓
**[API Layer]**
- ↓
**[External PokeAPI]**

##### Detailed Component Breakdown

**Components/**
- Atoms/
- Button
- Card
- Input
- etc.
- Molecules/
- Filters
- Navbar
- Profile
- Organisms/
- Layout
- Header
- Catalog

##### Technical Stack Indicators

- Next.js
- Tailwind CSS
- Axios
- CVA
- PokeAPI

##### Implementation Notes

- Notes about Atomic Design pattern implementation
- Separation between client and server components

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Frontend
        subgraph Components
            subgraph Atoms
                Box["Box Component"]:::atom
                Button["Button Component"]:::atom
                Card["Card Component"]:::atom
                Input["Input Component"]:::atom
            end
            
            subgraph Molecules
                Filters["Filtering System"]:::molecule
                Navbar["Navigation Bar"]:::molecule
                Profile["Profile Component"]:::molecule
            end
            
            subgraph Organisms
                Layout["Main Layout"]:::organism
                Header["Header Component"]:::organism
                Footer["Footer"]:::organism
                Catalog["Pokemon Catalog"]:::organism
            end
        end
        
        subgraph Pages
            MainPage["Main Page"]:::page
            PokedexPage["Pokedex Page"]:::page
            DetailPage["Pokemon Detail Page"]:::page
        end
    end
    
    subgraph "Application Layer"
        Router["Next.js App Router"]:::router
        
        subgraph "API Layer"
            APIRoutes["API Routes"]:::api
            APIActions["API Actions"]:::api
        end
        
        subgraph "Data Layer"
            DataHandling["Data Handling"]:::data
            Interfaces["Interfaces"]:::data
            Constants["Constants"]:::data
        end
    end
    
    subgraph "External Services"
        PokeAPI["PokeAPI"]:::external
        Vercel["Vercel Deployment"]:::external
    end
    
    %% Relationships
    Atoms --> Molecules
    Molecules --> Organisms
    Organisms --> Pages
    Pages --> Router
    Router --> APIRoutes
    APIRoutes --> APIActions
    APIActions --> DataHandling
    DataHandling --> PokeAPI
    Router --> Vercel
    
    %% Click Events
    click Atoms "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/tree/release/src/components/atoms/"
    click Molecules "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/tree/release/src/components/molecules/"
    click Organisms "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/tree/release/src/components/organism/"
    click MainPage "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/pages/main.tsx"
    click PokedexPage "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/pages/pokedex.tsx"
    click DetailPage "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/pages/pokemondetail.tsx"
    click APIRoutes "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/tree/release/src/pages/api/"
    click APIActions "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/pages/api/actions.ts"
    click DataHandling "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/lib/data.ts"
    click Interfaces "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/lib/interface.tsx"
    click Constants "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/lib/constants.ts"
    click Layout "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/organism/layout.tsx"
    click Header "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/organism/header.tsx"
    click Footer "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/organism/footer.tsx"
    click Catalog "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/organism/catalog.tsx"
    click Navbar "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/molecules/navbar.tsx"
    click Filters "https://github.com/fauzansyll/fauzan-fe-satudental-pokemon/blob/release/src/components/molecules/filters.tsx"
    
    %% Styling
    classDef atom fill:#e3f2fd,stroke:#2196f3
    classDef molecule fill:#e8f5e9,stroke:#4caf50
    classDef organism fill:#fff3e0,stroke:#ff9800
    classDef page fill:#f3e5f5,stroke:#9c27b0
    classDef router fill:#fffde7,stroke:#ffd700
    classDef api fill:#efebe9,stroke:#795548
    classDef data fill:#e0f2f1,stroke:#009688
    classDef external fill:#fce4ec,stroke:#e91e63
```
