How nicholastsk/educhain works
Main Components
• Frontend (educhain-frontend):
• Built with React.js.
• Contains the core UI logic (App.js) and the contract ABI (EduChainABI.json) for interacting with Ethereum-based smart contracts.
• Handles interactions like course enrollment, assignment submissions, and certificate verifications.
• Backend (educhain-backend):
• Built with Node.js and Express.
• Serves as the API layer interfacing between the frontend and deployed smart contracts.
• The main entry (index.js) defines routes and controllers to process business logic and smart contract interactions.
• Smart Contracts:
• EduChain.sol for managing course creation/enrollment.
• EduCert.sol for issuing NFT-based certificates.
• These contracts represent the decentralized logic of the platform and need integration into both the frontend and the backend.
• External Services/Integrations:
• MetaMask for Ethereum blockchain interactions.
• Remix IDE for contract deployment as noted in the README.
Diagramming the Architectural Relationships
• Frontend (React.js), labeled with "User Interface & Smart Contract Integration" along with specific files like App.js and EduChainABI.json.
• Backend (Node.js + Express) with clear labeling for API endpoints in index.js.
• Smart Contracts (EduChain.sol and EduCert.sol) housed on the Ethereum blockchain.
• Link these components:
Architectural Patterns and Design Principles
• Separation of concerns:
• The React.js-based frontend handles user interaction and smart contract calls via MetaMask.
• The Node.js backend abstracts the blockchain interactions (e.g., by interfacing with the contracts) and provides APIs.
• The blockchain and smart contracts encapsulate the business logic for course management and NFT certification.
• Decentralized logic pattern, where the smart contracts maintain integrity and trust independently on the Ethereum network.
Relevant Technologies
• Frontend: React.js, Web3.js (or ethers.js, if used), MetaMask.
• Backend: Node.js, Express, npm modules.
• Blockchain: Ethereum, MetaMask integration.
• Smart Contracts: Solidity (EduChain.sol and EduCert.sol).
• Additionally, add a branch from the Frontend to MetaMask illustrating “Wallet & Transaction Signing.”