How luiz-lombardi/hiring-coders-desafio-2 works
Project type and purpose
• This is a front-end only, static e-commerce inventory system (no backend server).
• Purpose: allow users to add, view, and persist customer and product records in the browser’s LocalStorage.
Main components
a. UI layer
• index.html – landing page
• produto.html – product inventory page
• cliente.html – client information page
• css/estilo.css – global styling
b. Behavior layer
• js/scriptproduto.js – product CRUD logic against LocalStorage
• js/scriptcliente.js – client CRUD logic against LocalStorage
c. Persistence layer
• Browser LocalStorage (key/value store for products and clients)
Relationships and data flows
• User → HTML pages (entry points)
• HTML pages load their respective JS modules → perform read/write to LocalStorage
• JS modules update the DOM dynamically to reflect CRUD operations
• Data persists across sessions via LocalStorage
Architectural patterns & principles
• Separation of concerns:
• HTML defines structure
• CSS handles presentation
• JS modules handle data and logic
• Each HTML page is paired with a dedicated script (module) for its domain (clients vs. products)
• Use of browser storage as a “local database”