# aprendiendofrontend/aprendiendo-react architecture

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

- Interactive diagram: https://gitdiagram.com/aprendiendofrontend/aprendiendo-react
- Repository: https://github.com/aprendiendofrontend/aprendiendo-react

## Overview

##### Project type and purpose
- This is a “learning‐React” monorepo containing three standalone front-end React applications (react-calculator, search-movies, udemy-curso-ejemplos) plus a recursos folder.
- Each app is a single-page application (SPA) built with React; react-calculator adds Redux for state management, search-movies consumes an external movie API, and udemy-curso-ejemplos demonstrates various React patterns.

##### File structure
Top-level:
- react-calculator/       ← custom build with Babel, Redux pattern
- search-movies/          ← Create-React-App scaffold, public + src + service worker
- udemy-curso-ejemplos/   ← CRA scaffold for pedagogical examples
- recursos/               ← course resource files
- package.json            ← dependencies, scripts
- public/ (or src/index.html)
- src/                    ← entry point, components, styles, assets
- state folders (actions, reducers, containers) in react-calculator

##### README for additional insights
- Confirms this repo is code samples for a Udemy React course.
- No backend or database is in scope—pure front-end and external API calls only.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Developer Layer
    Dev["Developer IDE<br/>(Node.js, npm/Yarn)"]:::build
    Dev -->|npm start / build| RC_BUILD
    Dev -->|npm start / build| SM_BUILD
    Dev -->|npm start / build| UCE_BUILD

    %% Build Pipeline
    subgraph "Build Pipelines" 
        direction TB
        RC_BUILD["react-calculator:<br/>Babel & Webpack"]:::build
        SM_BUILD["search-movies:<br/>CRA Scripts"]:::build
        UCE_BUILD["udemy-curso-ejemplos:<br/>CRA Scripts"]:::build
    end

    %% Bundled Assets
    RC_BUILD --> RC_BUNDLE
    SM_BUILD --> SM_BUNDLE
    UCE_BUILD --> UCE_BUNDLE

    RC_BUNDLE["react-calculator:<br/>bundle.js & assets"]:::build
    SM_BUNDLE["search-movies:<br/>bundle.js & assets"]:::build
    UCE_BUNDLE["udemy-curso-ejemplos:<br/>bundle.js & assets"]:::build

    %% Browser / Runtime
    subgraph "Browser / Client" 
        direction TB
        RC_BUNDLE --> RC_BROWSER
        SM_BUNDLE --> SM_BROWSER
        UCE_BUNDLE --> UCE_BROWSER

        RC_BROWSER["react-calculator:<br/>index.html + JS/CSS"]:::runtime
        SM_BROWSER["search-movies:<br/>public + bundle"]:::runtime
        UCE_BROWSER["udemy-curso-ejemplos:<br/>public + bundle"]:::runtime
    end

    %% React Applications
    RC_BROWSER --> RC_APP
    SM_BROWSER --> SM_APP
    UCE_BROWSER --> UCE_APP

    subgraph "react-calculator App" 
        direction TB
        RC_ENTRY["src/index.html"]:::frontend
        RC_APPJS["src/app.js"]:::frontend
        RC_ROOT["src/CalculatorApp.js"]:::frontend

        RC_ENTRY --> RC_APPJS --> RC_ROOT
        RC_ROOT --> RC_STORE["Redux Store"]:::state
        RC_STORE --> RC_ACTIONS["actions/index.js"]:::state
        RC_STORE --> RC_CONST["actions/constants.js"]:::state
        RC_STORE --> RC_REDUCERS["reducers/index.js"]:::state
        RC_STORE --> RC_CONT1["containers/DisplayContainer"]:::state
        RC_STORE --> RC_CONT2["containers/KeyPadContainer"]:::state
        RC_CONT1 --> RC_DISPLAY["components/Display"]:::frontend
        RC_CONT2 --> RC_KEYPAD["components/KeyPad"]:::frontend
        RC_KEYPAD --> RC_KEY["components/Key"]:::frontend
    end

    subgraph "search-movies App"
        direction TB
        SM_ENTRY["src/index.js"]:::frontend
        SM_ROOT["src/App.js"]:::frontend
        SM_ENTRY --> SM_ROOT
        SM_ROOT --> SM_SW["src/registerServiceWorker.js"]:::frontend
        SM_ROOT --> SM_SEARCH["src/components/SearchForm.js"]:::frontend
        SM_ROOT --> SM_PAGES["src/pages"]:::frontend
        SM_PAGES --> SM_HOME["Home.js"]:::frontend
        SM_PAGES --> SM_DETAIL["Detail.js"]:::frontend
        SM_PAGES --> SM_NOTFOUND["NotFound.js"]:::frontend
        SM_SEARCH -->|GET /movies?q=...| API["External Movie API"]:::external
    end

    subgraph "udemy-curso-ejemplos App"
        direction TB
        UCE_ENTRY["src/index.js"]:::frontend
        UCE_ROOT["src/App.js"]:::frontend
        UCE_ENTRY --> UCE_ROOT
        UCE_ROOT --> UCE_DATA["src/data/cars.json"]:::runtime
        UCE_ROOT --> UCE_SECTIONS["src/sections"]:::frontend
        UCE_SECTIONS --> UCE_SEC1["children.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC2["componentsWithComposition.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC3["componentsWithInheritance.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC4["conditional.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC5["container-component/index.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC6["events.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC7["fetch-example.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC8["forms.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC9["life-cycle/*.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC10["lists.js"]:::frontend
        UCE_SECTIONS --> UCE_SEC11["stateless-proptypes.js"]:::frontend
    end

    %% Click Events
    click RC_BUILD "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/.babelrc"
    click RC_BUILD "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/package.json"
    click SM_BUILD "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/package.json"
    click UCE_BUILD "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/package.json"
    click RC_ENTRY "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/index.html"
    click RC_APPJS "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/app.js"
    click SM_ENTRY "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/index.js"
    click UCE_ENTRY "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/index.js"
    click RC_ROOT "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/CalculatorApp.js"
    click SM_ROOT "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/App.js"
    click UCE_ROOT "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/App.js"
    click RC_ACTIONS "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/actions/index.js"
    click RC_CONST "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/actions/constants.js"
    click RC_REDUCERS "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/reducers/index.js"
    click RC_CONT1 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/containers/DisplayContainer/index.js"
    click RC_CONT2 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/containers/KeyPadContainer/index.js"
    click RC_DISPLAY "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/components/Display/index.js"
    click RC_KEYPAD "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/components/KeyPad/index.js"
    click RC_KEY "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/react-calculator/src/components/Key/index.js"
    click SM_SW "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/registerServiceWorker.js"
    click SM_SEARCH "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/components/SearchForm.js"
    click SM_HOME "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/pages/Home.js"
    click SM_DETAIL "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/pages/Detail.js"
    click SM_NOTFOUND "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/search-movies/src/pages/NotFound.js"
    click UCE_DATA "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/data/cars.json"
    click UCE_SEC1 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/children.js"
    click UCE_SEC2 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/componentsWithComposition.js"
    click UCE_SEC3 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/componentsWithInheritance.js"
    click UCE_SEC4 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/conditional.js"
    click UCE_SEC5 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/container-component/index.js"
    click UCE_SEC6 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/events.js"
    click UCE_SEC7 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/fetch-example.js"
    click UCE_SEC8 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/forms.js"
    click UCE_SEC9 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/life-cycle/*.js"
    click UCE_SEC10 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/lists.js"
    click UCE_SEC11 "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/udemy-curso-ejemplos/src/sections/stateless-proptypes.js"
    click recursos "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/recursos/props-por-defecto.md"
    click recursos "https://github.com/aprendiendofrontend/aprendiendo-react/blob/master/recursos/props-por-defecto.pdf"

    %% Styles
    classDef build fill:#D0E6FF,stroke:#004E8C,stroke-width:1px
    classDef runtime fill:#DFFFD6,stroke:#2E8B57,stroke-width:1px
    classDef state fill:#FFE6B3,stroke:#CC8400,stroke-width:1px
    classDef frontend fill:#FFECD6,stroke:#CC6600,stroke-width:1px
    classDef external fill:#FFF5B1,stroke:#CCAA00,stroke-width:1px
```
