A decentralized platform for buying and selling renewable energy using Ethereum blockchain and smart contracts. Users can list, buy, and trade energy securely, with transactions stored on the blockchain.
🚀 Live Demo: (Netlify)
✅ Decentralized Energy Trading – Buy and sell energy using Ethereum smart contracts.
✅ Blockchain Transactions – Transactions are recorded on the blockchain for security.
✅ Authentication System – Users can sign up, log in, and manage accounts.
✅ Market Listings – View available energy listings with prices.
✅ Dashboard & Analytics – Interactive charts to visualize transactions.
✅ Web3 Integration – Connect with MetaMask to make transactions.
- React (Vite) – Fast frontend framework
- Tailwind CSS – Styling
- React Router – Page navigation
- Chart.js – Data visualization
- Node.js & Express.js – REST API
- PostgreSQL – Database
- JSON Web Tokens (JWT) – Authentication
- Solidity – Smart contract development
- Hardhat – Ethereum development environment
- Ethers.js – Blockchain interaction
Ensure you have the following installed:
- Node.js (LTS version)
- PostgreSQL (Database)
- Docker (For containerization)
- MetaMask Wallet (For blockchain transactions)
cd backend
npm install
node src/server.jscd frontend2
npm install
npm run devcd smart-contracts
npx hardhat compilenpx hardhat run scripts/deploy.js --network sepolianpx hardhat verify --network sepolia your-contract-addressUse docker-compose.yml to run everything together:
docker-compose up --build