Welcome to the Real Estate DeFi Platform! This guide will help you get up and running quickly.
Before you begin, ensure you have the following installed:
- Bun (v1.0.0+) - Package manager and runtime
- Node.js (v18.0.0+) - For frontend development
- Rust (latest) - For contract development
- Stellar CLI (latest) - For blockchain operations
- Git - Version control
- VS Code with extensions:
- Rust Analyzer
- TypeScript and JavaScript Language Features
- Tailwind CSS IntelliSense
- Elysia.js (for API development)
git clone https://github.com/your-org/real-estate-defi-platform.git
cd real-estate-defi-platform# Install all dependencies for all workspaces
bun install:all
# Alternatively, install step by step
bun install
bun install --workspacesUse the provided example files as your starting point:
# API variables
cp apps/api/.env.example apps/api/.env.local
# Webapp variables (local defaults included)
cp apps/webapp/.env.local.example apps/webapp/.env.localFor production-like values and variable descriptions, see:
apps/api/.env.exampleapps/webapp/.env.example
# Install Stellar CLI (if not already installed)
curl -sSf https://raw.githubusercontent.com/stellar/stellar-cli/main/install.sh | sh
# Configure your identity (for testnet)
stellar keys generate --network testnet
# Verify setup
stellar keys address# Start all services
bun run dev
# Or start individually
bun run dev:webapp # Frontend on http://localhost:3000
bun run dev:api # Backend API on http://localhost:3001Visit http://localhost:3000 - You should see the landing page.
Visit http://localhost:3001/health - You should see:
{
"status": "ok",
"timestamp": "2026-01-06T...",
"version": "1.0.0"
}Visit http://localhost:3001/swagger - You should see the API documentation.
cd apps/contracts
cargo build --target wasm32-unknown-unknown --release- Read Architecture Documentation: Understand the system design
- Configure Environment: Set up your testnet/mainnet environment
- Deploy Contracts: Deploy smart contracts to your preferred network
- Integrate Frontend: Connect the frontend to your deployed contracts
- Set Up KYC: Configure KYC provider for compliance
If ports 3000 or 3001 are already in use:
# Kill existing processes
lsof -ti:3000 | xargs kill -9
lsof -ti:3001 | xargs kill -9
# Or use different ports
PORT=3002 bun run dev:apiIf Stellar CLI commands fail:
# Ensure you're on the correct network
stellar network info
# Reset configuration if needed
stellar config resetIf you encounter dependency conflicts:
# Clean and reinstall
bun run clean
bun install:all- Check our FAQ
- Review Common Issues
- Create an issue on GitHub
- Join our Discord community
Use workspace-specific environment files:
- API: copy
apps/api/.env.exampletoapps/api/.env.local - Webapp local development: copy
apps/webapp/.env.local.exampletoapps/webapp/.env.local - Webapp variable reference:
apps/webapp/.env.example
Congratulations! You're now ready to start developing with the Real Estate DeFi Platform. 🎉