A complete blockchain-based platform for managing blue carbon credits from mangrove restoration projects.
- π± Project Registration - Complete carbon credit project onboarding
- π°οΈ AI Analysis - Satellite imagery and site analysis
- π Multi-Stage Verification - Internal, third-party, and legal verification
- βοΈ Blockchain Integration - Aptos smart contracts for immutable records
- πͺ Tokenization - ERC-20 compatible carbon credit tokens
- π Global Marketplace - Real-time trading with live market data
- π Impact Dashboard - Real-time environmental and social impact tracking
- πΉ Live Pricing - Binance API integration for real-time market data
- React 18
- Modern responsive UI
- Real-time data updates
- Progressive Web App ready
- Python FastAPI
- SQLAlchemy ORM
- Real-time Binance API integration
- Comprehensive REST API
- Aptos Move smart contracts
- GeoNFT (location-bound NFTs)
- Automated tokenization
- On-chain verification
- Node.js 18+
- Python 3.9+
- Git
- Clone the repository
git clone <repository-url>
cd CarbonChain-Deploy- Install dependencies
# Install backend dependencies
cd backend
pip install -r requirements.txt
# Install frontend dependencies
cd ../frontend
npm install- Start the application
Backend (Terminal 1):
cd backend
python main.pyFrontend (Terminal 2):
cd frontend
npm start- Access the application
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
CarbonChain-Deploy/
βββ backend/ # Python FastAPI Backend
β βββ main.py # Main API application
β βββ models.py # Database models
β βββ schemas.py # Pydantic schemas
β βββ database.py # Database configuration
β βββ requirements.txt # Python dependencies
β βββ services/ # Business logic modules
β βββ image_analysis.py
β βββ carbon_calculator.py
β βββ blockchain_service.py
β βββ aptos_integration.py
β βββ binance_price_service.py
β βββ verification_service.py
β βββ marketplace_service.py
β
βββ frontend/ # React Frontend
β βββ src/
β β βββ components/ # React components
β β β βββ InitialAssessment.js
β β β βββ VerificationSteps.js
β β β βββ BlockchainRegistry.js
β β β βββ SmartContracts.js
β β β βββ CarbonMarketplace.js
β β β βββ ImpactDashboard.js
β β βββ App.js # Main application
β β βββ index.js # Entry point
β βββ package.json # Node dependencies
β
βββ aptos-contracts/ # Aptos Move Smart Contracts
β βββ sources/
β β βββ carbon_credit.move
β βββ Move.toml
β
βββ package.json # Root package.json
βββ netlify.toml # Netlify deployment config
βββ README.md # This file
POST /api/projects- Create new projectGET /api/projects/{id}- Get project detailsGET /api/projects- List all projects
POST /api/analysis/site-image/{id}- Upload & analyze imagePOST /api/analysis/satellite/{id}- Satellite analysis
POST /api/verification/{id}- Create verificationPUT /api/verification/{id}/approve- Approve verification
POST /api/blockchain/deploy/{id}- Deploy smart contractPOST /api/blockchain/mint-geonft/{id}- Mint GeoNFT
POST /api/marketplace/list/{id}- List creditsGET /api/marketplace/statistics- Market statisticsGET /api/marketplace/live-prices- Real-time prices
GET /api/dashboard/{id}- Project metrics
Backend (.env):
DATABASE_URL=sqlite:///./blue_carbon_registry.db
APTOS_NODE_URL=https://fullnode.testnet.aptoslabs.com/v1
APTOS_PRIVATE_KEY=your_private_key_hereFrontend (.env.local):
REACT_APP_API_URL=http://localhost:8000The frontend is configured for automatic deployment to Netlify:
- Connect your GitHub repository to Netlify
- Set build command:
npm run build - Set publish directory:
frontend/build - Deploy automatically on push
Deploy the backend to any Python hosting service:
- Set Python version to 3.9+
- Install dependencies from
requirements.txt - Start command:
python main.py
- Live Market Data - Updates every second from Binance API
- Dynamic Pricing - Carbon credits correlated to crypto markets
- Real-Time Portfolio - Live portfolio value calculations
- Market Sentiment - Bullish/Bearish indicators
- Input validation with Pydantic
- SQL injection prevention
- CORS configuration
- Smart contract authorization
- Environment variable protection
- COβ sequestration monitoring
- Biodiversity index calculation
- Community benefit tracking
- Water quality assessment
- Progress visualization
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License.
- Aptos Foundation for blockchain infrastructure
- Binance for real-time market data API
- FastAPI for excellent Python web framework
- React team for powerful frontend library
Built with β€οΈ for climate action and sustainable development