# udacity/frontend-nanodegree-resume architecture

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

- Interactive diagram: https://gitdiagram.com/udacity/frontend-nanodegree-resume
- Repository: https://github.com/udacity/frontend-nanodegree-resume

## Overview

##### Project type and purpose
- This is a single-page, front-end “Online Resume” application.
- It consists of static assets (HTML, CSS, images) plus JavaScript modules that render a resume from in-memory data objects and embed a Google Map.

##### File structure
- index.html
– The host page. Links in the <head> pull in style.css, jQuery, helper.js, resumeBuilder.js, and (optionally) the Google Maps API.
- css/style.css
- images/
– Biopic and any other resume-related graphics.
- js/
– jQuery.js: the core DOM-traversal/manipulation library.
– helper.js: HTML-snippet templates (with %data% placeholders) plus map-initialization logic.
– resumeBuilder.js: empty file where you define four objects (bio, education, work, projects), each having a display() method that:
- Takes raw data from the object,
- Calls string.replace() to fill helper.js templates,
- Uses jQuery selectors (.append(), .prepend()) to inject them into index.html,
- Finally appends the googleMap snippet to #mapDiv.

##### Key insights from the README
- Data-driven rendering: four JS objects follow a strict schema.
- Separation of concerns: helper.js = templates + map logic; resumeBuilder.js = data + rendering loops.
- Uses jQuery for DOM updates and the Google Maps JavaScript API for a map widget.

## Diagram (Mermaid)

```mermaid
flowchart TB
    Browser["Browser/Client"]
    
    subgraph "Presentation Tier"
        Index["index.html"]:::static
        StyleCSS["css/style.css"]:::static
        Images["images/"]:::static
    end

    subgraph "Client Logic Tier"
        JQuery["js/jQuery.js"]:::script
        Helper["js/helper.js"]:::script
        Builder["js/resumeBuilder.js"]:::script
    end

    MapsAPI["Google Maps API"]:::external

    Browser -->|"requests"| Index
    Index -->|"loads"| StyleCSS
    Index -->|"loads"| Images
    Index -->|"loads"| JQuery
    JQuery -->|"providesDOMAPIs"| Helper
    Helper -->|"loads"| Builder
    Builder -->|"usesTemplates"| Helper
    Builder -->|"injectsDOM"| Browser
    Builder -->|"appendsGoogleMapSnippet"| Helper
    Helper -->|"initializes"| MapsAPI
    MapsAPI -->|"rendersMap"| Browser

    click Index "https://github.com/udacity/frontend-nanodegree-resume/blob/master/index.html"
    click StyleCSS "https://github.com/udacity/frontend-nanodegree-resume/blob/master/css/style.css"
    click Images "https://github.com/udacity/frontend-nanodegree-resume/tree/master/images/"
    click JQuery "https://github.com/udacity/frontend-nanodegree-resume/blob/master/js/jQuery.js"
    click Helper "https://github.com/udacity/frontend-nanodegree-resume/blob/master/js/helper.js"
    click Builder "https://github.com/udacity/frontend-nanodegree-resume/blob/master/js/resumeBuilder.js"
    click MapsAPI "https://github.com/udacity/frontend-nanodegree-resume/blob/master/index.html"

    classDef static fill:#ADD8E6,stroke:#000;
    classDef script fill:#90EE90,stroke:#000;
    classDef external fill:#FFD580,stroke:#000;
```
