github-actions[bot] be068f54a3 Merge pull request #41 from th30d4y/dependabot/npm_and_yarn/frontend/ethers-6.16.0
Bump ethers from 6.15.0 to 6.16.0 in /frontend
2026-05-05 12:08:09 +00:00
2025-07-25 11:30:25 +05:30
2025-09-14 16:59:36 +05:30
2025-07-30 07:43:06 +05:30
2025-07-29 20:56:15 +05:30
2025-07-25 11:10:44 +05:30
2025-07-30 07:43:06 +05:30
2025-07-30 07:43:06 +05:30
2025-07-30 07:43:06 +05:30
2026-05-03 12:02:08 +00:00
2025-07-26 21:54:27 +05:30

OpenLearnX

OpenLearnX is an open-source, decentralized learning and assessment platform that combines adaptive AI-driven quizzes, real-time code execution, and blockchain-based NFT certificates to create a transparent, verifiable, and personalized educational experience.

Features

  • Adaptive Learning Questions dynamically adjust in real-time based on learner performance using IRT (Item Response Theory) and AI models
  • Instant Feedback Real-time quiz grading with detailed explanations and performance analytics
  • NFT Certificates Blockchain-verified ERC-721 certificates minted on Ethereum; tamper-proof and permanently on-chain
  • Multi-Language Code Compiler Sandboxed execution of Python, JavaScript, Java, C++, Go, Rust, and more
  • Comprehensive Dashboards Student and instructor dashboards with competency radar charts, progress tracking, and bias detection
  • AI Quiz Generation LLM-powered contextual question generation with auto-grading
  • Decentralized Chat Peer-to-peer encrypted messaging for study groups
  • Peer Review System Collaborative review with AI-monitored grading bias detection

Tech Stack

Layer Technology
Frontend Next.js 16, React 19, TypeScript, TailwindCSS
Backend Python 3, Flask
Database MongoDB
Cache Redis
Blockchain Ethereum (Solidity, Foundry / Anvil)
Wallet MetaMask (ethers.js v6)
ML / AI TensorFlow, LLM integration
Storage IPFS (certificate metadata)
Container Docker

Prerequisites

  • Node.js 18+
  • Python 3.10+
  • MongoDB
  • Git
  • MetaMask browser extension
  • Foundry (forge, anvil)

Quick Start

1. Install Foundry

curl -L https://foundry.paradigm.xyz | bash
source ~/.bashrc   # or ~/.zshrc
foundryup

2. Clone the repository

git clone https://github.com/th30d4y/OpenLearnX.git
cd OpenLearnX

3. Start the local blockchain

# Terminal 1  keep this running
anvil --fork-url https://eth.merkle.io

4. Set up the backend

# Terminal 2
cd backend
python3 -m venv venv
source venv/bin/activate       # Windows: venv\Scripts\activate
pip install -r requirements.txt

# Deploy the smart contract and note the contract address
python3 scripts/deploy.py

# Create .env (update CONTRACT_ADDRESS with the address printed above)
cat > .env << EOF
FLASK_ENV=development
SECRET_KEY=dev-secret-key-change-in-production
MONGODB_URI=mongodb://localhost:27017/openlearnx
WEB3_PROVIDER_URL=http://127.0.0.1:8545
CONTRACT_ADDRESS=<YOUR_DEPLOYED_CONTRACT_ADDRESS>
JWT_SECRET_KEY=jwt-secret-key
EOF

python3 main.py   # http://127.0.0.1:5000

5. Set up the frontend

# Terminal 3
cd frontend
pnpm install      # or: npm install

cat > .env.local << EOF
NEXT_PUBLIC_API_URL=http://localhost:5000/api
NEXT_PUBLIC_CHAIN_ID=31337
NEXT_PUBLIC_CONTRACT_ADDRESS=<YOUR_DEPLOYED_CONTRACT_ADDRESS>
NEXT_PUBLIC_RPC_URL=http://127.0.0.1:8545
EOF

pnpm run dev      # http://localhost:3000

6. Configure MetaMask

  1. Add a custom network: RPC http://127.0.0.1:8545, Chain ID 31337, symbol ETH
  2. Import a test account using a private key printed by Anvil (starts with 0xac…)

See QUICK_START.md for the full walkthrough and troubleshooting tips.

Docker

docker compose up --build

Project Structure

OpenLearnX/
├── backend/          # Flask API, smart-contract scripts, ML models
│   ├── contracts/    # Solidity smart contracts
│   ├── models/       # Database models
│   ├── routes/       # API route handlers
│   ├── services/     # Business logic (auth, quiz, cert, compiler…)
│   └── scripts/      # Deployment & utility scripts
├── frontend/         # Next.js application
│   ├── app/          # App Router pages
│   ├── components/   # Reusable UI components
│   ├── context/      # React context providers
│   └── hooks/        # Custom React hooks
├── chatApp/          # Decentralized chat application
├── docker-compose.yml
└── DOCUMENTATION.md  # Full technical documentation

Documentation

Document Description
DOCUMENTATION.md Comprehensive technical documentation
ARCHITECTURE.md System architecture diagrams
QUICK_START.md Step-by-step setup guide
SECURITY.md Security policies and practices
DEPLOYMENT_COMPLETE.md Deployment guide

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is open source. See the repository for license details.

Languages
TypeScript 22%
JavaScript 21.3%
Jupyter Notebook 20%
Solidity 18.2%
Python 11.6%
Other 6.9%