DecentralLearn
DecentralLearn is a decentralized learning platform that leverages AI for personalized education and blockchain for token rewards.
Features
- AI-generated course content
- Personalized learning paths
- Interactive quizzes
- Blockchain-based token rewards
- Decentralized storage with Spheron
- Community-driven course suggestions
Prerequisites
- Node.js (v14+)
- Python (v3.8+)
- MongoDB
- Ethereum wallet and some ETH for contract deployment
Setup
-
Clone the repository:
git clone https://github.com/yourusername/decentrallearn.git cd decentrallearn -
Install dependencies:
npm install cd frontend && npm install && cd .. python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt -
Set up environment variables:
cp .env.example .envEdit the
.envfile with your specific configuration. -
Initialize the database:
npm run db:init -
Deploy the smart contract:
npx hardhat run scripts/deploy_rewards.js --network <your-network>Update the
TOKEN_REWARDS_CONTRACT_ADDRESSin your.envfile with the deployed contract address. -
Start the development server:
npm run dev
Deployment
To deploy the application:
-
Build the frontend:
cd frontend && npm run build && cd .. -
Deploy to Spheron:
spheron deploy
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Description
Languages
JavaScript
76.9%
Python
19.8%
Shell
1.9%
CSS
1.4%