How lfsmariz/projeto-integrador-transdisciplinar works
Main System Components
A. Frontend Layer
• Static Web Pages (HTML/CSS)
• Client-side JavaScript
• Express Server (frontend/server.js)
B. Backend Layer
• API Server (Express)
• Business Logic (usecases)
• Data Access Layer (repository)
• Database (PostgreSQL)
Detailed Component Breakdown
Frontend Components (Top Layer):
• Web Pages (login, register, cart, product details)
• Static Assets (styles, scripts, images)
• Frontend Server (Express static file server)
Backend Components (Middle & Bottom Layers):
• API Routes Layer (userRoutes, productRoutes, cartRoutes, orderRoutes)
• Business Logic Layer (usecases)
• Data Access Layer (repository)
• Database Layer (PostgreSQL)
Connection Flows
• Client Browser → Frontend Server (HTTP/HTTPS)
• Frontend Server → Backend API (REST API calls)
• Backend API → Business Logic → Data Access Layer → Database
Specific Implementation Details
Frontend Section:
┌─ Frontend Layer ─────────────────┐
• ┌─ Web Pages ─────┐ ┌─ Assets ─┐ │
• index.html │ │ - CSS │ │
• login.html │ │ - JS │ │
• register.html │ │ - Images │ │
• cart.html │ └─────────┘ │
• ┘ │
• ┘
Backend Section:
┌─ Backend Layer ──────────────────┐
• ┌─ API Routes ─────────────────┐ │
• User - Product │ │
• Cart - Order │ │
• ┘ │
• ┌─ Business Logic (Usecases) ──┐ │
• User - Product │ │
• Cart - Order │ │
• ┘ │
• ┌─ Data Access (Repository) ───┐ │
• User - Product │ │
• Cart - Order │ │
• ┘ │
• ┘
Additional Elements
• Docker containers (show Docker composition)
• Test coverage scope
• External service integrations (if any)
• Security layers (authentication/authorization)
• Cache layers (if implemented)
Important Architectural Patterns to Highlight
• Clean Architecture pattern (shown in the backend structure with usecases and repository layers)
• MVC pattern in the frontend organization
• Repository pattern for data access
• REST API architecture for communication
Technical Stack Callouts
• Node.js/Express (Backend framework)
• PostgreSQL (Database)
• Sequelize (ORM)
• Jest (Testing framework)
• Docker (Containerization)