How eshan-sud/secureit works
Main Components
A. Client-Side (Frontend Layer):
• React Application Container
• Component Modules:
• Authentication Module (MetMask Integration)
• File Management Module
• Permission Control Module
• Audit Trail Viewer
• Web3.js Integration Layer
B. Blockchain Layer:
• Smart Contracts
• Permission Management Contract
• Audit Trail Contract
• Compensation System Contract
C. Backend Services:
• Node.js/Express Server
• File Storage Service
• MongoDB Database
[Frontend Layer]
• ↕
[Blockchain Layer]
• ↕
[Backend Services]
Component Relationships to Highlight
a. User Flow Connections:
• MetaMask → Authentication → Smart Contract
• File Upload → Storage Service → Database
• Permission Settings → Smart Contract → Blockchain
b. Data Flow Paths:
• File Storage: Frontend → Backend → MongoDB
• Transaction Flow: Frontend → Web3.js → Blockchain
• Audit Trail: Smart Contract → Frontend Display
Specific Implementation Details
Technical elements:
Frontend:
• React.js Components (from /frontend/src/components)
• Web3.js Integration
• MetaMask Connection
Blockchain:
• Smart Contracts (referenced in /frontend/src/abi)
• Permission Management
• Transaction Handling
Backend:
• Express.js Server
• MongoDB Integration
• File Storage System
Additional Elements
• Security Layer Indicators
• API Endpoints (referenced in ApiEndpoints.js)
• User Authentication Flow
• File Storage Flow
• Permission Management Flow