BRICKBYTE is a decentralized platform that enables fractional ownership of real estate properties through NFTs, powered by AI valuation and automated rental distribution.
- Web3 Integration: Connect with MetaMask and other Web3 wallets
- Fractional Property Ownership: Buy and sell micro real estate shares as NFTs
- AI-Powered Valuation: Dynamic property price predictions and ROI calculations
- Automated Rental Distribution: Smart contract-based rental income distribution
- Real-time Trading: Instant buy/sell of property shares
- Transparent Ownership: On-chain ownership records and transaction history
- Portfolio Management: Track your investments and AI-predicted returns
- Interactive Chatbot: AI-powered assistant for property inquiries and support
- Next.js 14 (App Router)
- TypeScript
- TailwindCSS
- Shadcn/ui
- Web3.js
- Ethers.js
- React Query
- Vercel (Deployment)
- Node.js
- Express.js
- TypeScript
- Supabase (PostgreSQL)
- Render (Deployment)
- Solidity
- Hardhat
- OpenZeppelin
- Chainlink Automation
- Scikit-learn/TensorFlow (Local ML Model)
- Render (Deployment)
- Ethereum (Sepolia Testnet for Development)
brickbyte/
โโโ frontend/ # Next.js frontend application
โ โโโ app/ # App router pages
โ โโโ components/ # Reusable UI components
โ โโโ lib/ # Utility functions and API clients
โ โโโ hooks/ # Custom React hooks
โ โโโ contexts/ # React contexts
โ โโโ public/ # Static assets
โ โโโ styles/ # Global styles
โ
โโโ backend/ # Node.js backend application
โ โโโ src/
โ โ โโโ controllers/ # Route controllers
โ โ โโโ models/ # Data models
โ โ โโโ services/ # Business logic
โ โ โโโ routes/ # API routes
โ โ โโโ utils/ # Utility functions
โ โโโ tests/ # Backend tests
โ
โโโ contracts/ # Smart contracts
โ โโโ contracts/ # Solidity contracts
โ โโโ scripts/ # Deployment scripts
โ โโโ test/ # Contract tests
โ
โโโ ml-model/ # AI/ML model
โโโ data/ # Training data
โโโ models/ # Trained models
โโโ scripts/ # Training scripts
- Node.js (v18 or higher)
- npm or yarn
- MetaMask or other Web3 wallet
- Git
- Python 3.8+ (for ML model)
- Hardhat (for smart contract development)
- Vercel account (for frontend deployment)
- Render account (for backend and ML service deployment)
- Clone the repository:
git clone https://github.com/sudhansu-24/brickbyte.git
cd brickbyte- Install dependencies:
# Install frontend dependencies
cd frontend
npm install
# Install backend dependencies
cd ../backend
npm install
# Install smart contract dependencies
cd ../contracts
npm install
# Install ML model dependencies
cd ../ml-model
pip install -r requirements.txt- Create
.envfiles in each directory:
Frontend (.env.local):
NEXT_PUBLIC_API_URL=https://brickbyte-backend.onrender.com
NEXT_PUBLIC_ML_API_URL=https://brickbyte-ml.onrender.com
NEXT_PUBLIC_SEPOLIA_RPC_URL=YOUR_RPC_URL_PROVIDER
NEXT_PUBLIC_CONTRACT_ADDRESS=0xb39c11D2F62f3fADd1d1f5D3935e1D1b3e6D8FAb
NEXT_PUBLIC_SUPABASE_URL=https://sfcexboguumqecgcjfmj.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_keyBackend (.env):
PORT=3001
SUPABASE_URL=your_supabase_url
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
SUPABASE_ANON_KEY=your_anon_key
JWT_SECRET=your_jwt_secret
FRONTEND_URL=https://brickbyte.vercel.appML Service (.env):
PORT=8000Contracts (.env):
PRIVATE_KEY=your_wallet_private_key
SEPOLIA_RPC_URL=your_sepolia_rpc_url-
Frontend Deployment (Vercel)
- Push your code to GitHub
- Connect your repository to Vercel
- Set the root directory to
frontend - Set environment variables in Vercel dashboard
- Deploy
-
Backend Deployment (Render)
- Push your code to GitHub
- Create a new Web Service on Render
- Connect your repository
- Set environment variables
- Deploy
-
ML Service Deployment (Render)
- Push your code to GitHub
- Create a new Web Service on Render
- Set Python as the runtime
- Set environment variables
- Deploy
-
Smart Contract Deployment
cd contracts
npx hardhat run scripts/deploy.js --network sepolia- Start the ML model server:
cd ml-model
python scripts/valuation.py- Start the backend server:
cd backend
npm start- Start the frontend development server:
cd frontend
npm run devThe application will be available locally at:
- Frontend: http://localhost:3000
- Backend: https://brickbyte-backend.onrender.com
- ML Model: https://brickbyte-ml.onrender.com
- Deployed Application: https://brickbyte.vercel.app
- Demo Video: https://youtu.be/jYuMzdXD75I
-
User Registration
- Navigate to https://brickbyte.vercel.app/register
- Fill in your details and create an account
- Connect your MetaMask wallet
-
Property Listing
- Log in to your account
- Navigate to "Create Property"
- Fill in property details and upload images
- Set initial share price and total shares
-
Trading
- Browse available properties
- View AI-predicted ROI and property details
- Buy/sell shares using MetaMask
-
Portfolio Management
- View your owned shares
- Track rental income
- Monitor AI-predicted property valuations
Common issues and solutions:
-
CORS Issues
- Ensure backend CORS configuration includes your frontend domain
- Check environment variables are set correctly
- Verify all services are properly deployed
-
MetaMask Connection Issues
- Ensure MetaMask is installed and unlocked
- Check if you're connected to Sepolia testnet
- Verify your account has sufficient test ETH
-
Backend Connection Errors
- Check if backend server is running
- Verify environment variables are set correctly
- Check database connection
- Ensure CORS is properly configured
-
ML Service Issues
- Verify ML service is running
- Check environment variables
- Ensure proper CORS configuration
-
Smart Contract Deployment
- Ensure you have sufficient test ETH
- Verify network configuration in hardhat.config.js
- Check contract compilation for errors
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For security concerns, please email at [email protected] or create a security advisory on GitHub.
- OpenZeppelin for smart contract templates
- Chainlink for oracle services
- Supabase for database infrastructure
- Vercel and Render for deployment infrastructure
- The Ethereum community for development tools and resources





