# satrianugrohoputra/fitness_planner_beginner architecture

> Architecture diagram of the GitHub repository satrianugrohoputra/fitness_planner_beginner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/satrianugrohoputra/fitness_planner_beginner
- Repository: https://github.com/satrianugrohoputra/fitness_planner_beginner

## Overview

##### Project type and purpose
- This is a full-stack web application built with Next.js (Next 13 “app” router) using TypeScript and Tailwind CSS.
- Purpose: a beginner-friendly personal fitness planner that runs in the browser, leverages server-side rendering/static generation, and is styled with Tailwind.

##### File structure
- app/
- Contains React “app router” code: server and client components, layouts, pages, and global styles (globals.css).
- next.config.mjs
- Next.js configuration (routing, environment variables, image optimization, etc.).
- package.json & pnpm-lock.yaml
- Declares dependencies (React, Next.js, Tailwind, PostCSS) and lockfile for reproducible installs.
- postcss.config.mjs & tailwind.config.ts
- CSS pipeline configuration: PostCSS plugins + Tailwind settings (theme, purge paths).
- tsconfig.json
- TypeScript compiler settings.

##### Readme insights
- Core feature: fitness planning for beginners.
- No mention of an external database, so initial version may use static props, in-memory state, or browser storage.

##### Detail
- Distinctions between server vs. client components in the app/ folder

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Build & Deploy"
        pkg["package.json"]:::build
        lock["pnpm-lock.yaml"]:::build
        pnpm["pnpm Install & Scripts"]:::build
        postcssCfg["postcss.config.mjs"]:::build
        tailwindCfg["tailwind.config.ts"]:::build
        tsconfig["tsconfig.json"]:::build
        nextConfig["next.config.mjs"]:::build
        nextBuild["Next.js Build & Bundle\n(webpack, RSC)"]:::build
    end

    subgraph "Runtime"
        browser["Browser (React UI)"]:::frontend
        reactApp["app/\n(Client & Server Components)"]:::frontend
        globalsCSS["app/globals.css"]:::frontend
        server["Next.js Server\n(SSR/SSG & API)"]:::server
    end

    subgraph "External Services (Future)"
        api["Fitness Data API"]:::external
        auth["Auth Provider"]:::external
        db["Database"]:::external
    end

    pkg --> pnpm
    lock --> pnpm
    pnpm --> postcssCfg
    pnpm --> tailwindCfg
    pnpm --> tsconfig
    pnpm --> nextConfig
    postcssCfg --> nextBuild
    tailwindCfg --> nextBuild
    tsconfig --> nextBuild
    nextConfig --> nextBuild
    globalsCSS --> postcssCfg
    nextBuild --> server

    reactApp --> server
    browser --> server
    server --> browser
    reactApp --> browser

    server --> api
    server --> auth
    server --> db

    click pkg "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/package.json"
    click lock "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/pnpm-lock.yaml"
    click postcssCfg "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/postcss.config.mjs"
    click tailwindCfg "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/tailwind.config.ts"
    click tsconfig "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/tsconfig.json"
    click nextConfig "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/next.config.mjs"
    click reactApp "https://github.com/satrianugrohoputra/fitness_planner_beginner/tree/main/app/"
    click globalsCSS "https://github.com/satrianugrohoputra/fitness_planner_beginner/blob/main/app/globals.css"

    classDef frontend fill:#cfe2ff,stroke:#084298,color:#084298;
    classDef server fill:#d1e7dd,stroke:#0f5132,color:#0f5132;
    classDef build fill:#fff3cd,stroke:#664d03,color:#664d03;
    classDef external fill:#e2e3e5,stroke:#41464b,color:#41464b;
```
