How skorentis/softeng19-20 works
Main Components
A. Frontend Layer (Angular):
• Core Module Components:
• Authentication Module
• Users Module
• Home Module
• Payments Module
• Insert Data Module
• Shared Components:
• Header
• Error Handling
• Guards
• Interceptors
B. Backend Layer (Node.js):
• API Routes
• Middleware Layer
• Models Layer
• Database Connection
• Authentication System
• SSL Certificate Handler
C. Database Layer:
• MongoDB (indicated by mongoose.js)
• Data Models for:
• Users
• ActualTotalLoad
• AggregatedGeneration
• DayAheadForecast
• Various Reference Data
D. CLI Client:
• Command Line Interface Tool
• ┌─────────────────┐
• Frontend Zone │
• ┬────────┘
• ↕ HTTPS
• ┌────────┴────────┐
• Backend Zone │
• ┬────────┘
• ↕
• ┌────────┴────────┐
• Database Zone │
• ┘
Detailed Component Representation
Frontend (Angular):
┌─ Angular Application ─────────────────┐
• ┌─────────┐ ┌─────────┐ ┌─────────┐ │
• Auth │ │ Home │ │ Payment │ │
• ┘ └─────────┘ └─────────┘ │
• ┌─────────┐ ┌─────────┐ ┌─────────┐ │
• Users │ │ Insert │ │ Shared │ │
• ┘ └─────────┘ └─────────┘ │
• ┬──────────────────┘
• ↓
Backend (Node.js):
┌─ Node.js API ──────────────────────┐
• ┌─────────┐ ┌─────────┐ │
• Routes │ │ Models │ │
• ┘ └─────────┘ │
• ┌─────────┐ ┌─────────┐ │
• Middleware│ │ Config │ │
• ┘ └─────────┘ │
• ┬─────────────────┘
• ↓
Important Elements to Highlight
• Security Layer:
• SSL/TLS encryption (shown by sslcert folder)
• Authentication middleware
• Authorization guards
• Request interceptors
• Data Flow:
• User authentication flow
• API request/response cycle
• Data import/export processes
• Payment processing flow