The following project is a submission for HackUST 2023.
Homeābode leverages both finance and Web3 technologies to create a community-driven platform for affordable housing. It consists of two main components:
a) A REIT fund that manages and rents out housing for low-to-middle income HK residents at slightly below market price
b) A platform powered by smart-contracts and blockchain monitoring framework that increases the transparency of the fund’s assets and social impact.
The codebase for the project is split into two parts: the blockchain network and the web application.
The blockchain network is built using solidity and local ganache server.
The web application is built using Next.js.
- Node.js
- NPM
- Git
- Metamask
- ganache
- hardhat
- Clone the repo
git clone https://github.com/Pat-r1ck/hackust23.git
-
Change directory to the web3 folder
cd hackust23/web3
-
Install NPM packages
npm install
-
Start the local blockchain network
ganache -h localhost -p 8545 -d
-
Compile the smart contracts
npm run deploy
-
Open the link provided in the terminal to connect to the local blockchain network. Connect the metamask wallet to the local blockchain network by copying the private key of the first account in the ganache terminal and import it into the metamask wallet. Change the network to localhost:8545.
-
Deploy the smart contract and copy the contract address of the deployed smart contract and paste it in the .env.development file in the client folder.
- Change directory to the client folder
cd hackust23/client
- Install NPM packages
npm install
- Start the web application
npm run dev