- Open MySQL Workbench.
- Import the
db.sqlfile located in thedatabase/folder. - Ensure the MySQL service is running on your machine.
- Navigate to the backend folder:
cd brickyield-backend. - Create and activate a virtual environment:
python -m venv venv .\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt. - Run the server:
uvicorn main:app --reload.
- Navigate to the frontend folder:
cd brickyield-frontend. - Install dependencies:
npm install. - Start the development server:
npm run dev. - Open the provided local URL (typically
http://localhost:5173) in your browser[cite: 1].
This project was developedI understand. Here is the downloadable README.md file for your project.
README.md
File Contents Preview:
BrickYield is a specialized fractional real estate platform designed to bridge the gap between property developers and individual investors. The platform enables investors to purchase fractional shares of high-value properties while allowing developers to manage their portfolio, tenants, and revenue streams effectively.
- Property Marketplace: Browse and purchase fractional shares of residential and commercial properties.
- Portfolio Dashboard: Visualize investment allocation through interactive pie charts and portfolio bubbles[cite: 1].
- Financial History: A dedicated tab to track all share purchase transactions and dividend payouts received[cite: 1].
- Real-time Wallet: Monitor current balance and total passive earnings[cite: 1].
- Portfolio Management: View detailed financials, tenant information, and lease agreements for all listed properties[cite: 1].
- Revenue Tracking: Access a specialized "Financial History" tab to monitor rental revenue records and collection status[cite: 1].
- Financial Oversight: Monitor net income, expenses, and dividend distribution per share[cite: 1].
- User Verification: Manage and verify KYC status for new investors and developers.
- Automated Payouts: Execute annual dividend distributions based on share ownership records.
- System Reports: Generate high-level overviews of total users, revenue, and property performance using data visualization[cite: 1].
- Frontend: React.js with Vite, Recharts (for data visualization)[cite: 1].
- Backend: FastAPI (Python).
- Database: MySQL with stored procedures for complex financial logic.
- Authentication: JWT (JSON Web Tokens) for secure session management.
brickyield/
├── brickyield-frontend/ # React source code & Vite config
│ ├── src/
│ │ ├── App.jsx # Main application logic & UI
│ │ └── ...
│ └── package.json
├── brickyield-backend/ # FastAPI server & logic
│ ├── main.py # Entry point
│ ├── database.py # MySQL connection setup
│ ├── routers/ # API endpoints (investor, developer, admin)
│ └── requirements.txt
└── database/
└── schema.sql # Database export including tables & procedures