This is a shared real-estate marketplace dapp where users can:
- list properties for sale which creates a token for each share on sale
- property owners can update the price or cancel the sale only when no shares have been sold
- anyone can buy a share
- only owners would see the update property button so that they can update the property details.
The novelty here is the fact that when you uplaod your property for sale, ERC20 tokens that represent that house is automatically created and transferred to persons who purchase a piece of your property.
- Create an ERC20 token for each property added
- Transfer those adequate number ERC20 tokens to the person who bought a share of the property
- Cancel Sale Method
- Update Sales Price Method
- Update Property Modal with the option to update price or cancel sale
- Conditional display of update property button (only property owners see it)
- Added more characteristics such as number of bedrooms, bathrooms etc
- Added link to ERC20 House Token for each property
- only approve tokens when there is no allowance
- Allow property owner to update the number of shares on sale and thus transfer the right number of tokens
- NFTs to represent the homes instead of ERC20 tokens
Shared Real Estate Marketplace Dapp
- Install the Metamask wallet
- Create a wallet.
- Go to https://celo.org/developers/faucet and get tokens for the alfajores testnet.
- Switch to the alfajores testnet in the Metamask.
- Create a property.
- Create a second account in your extension wallet and send them cUSD tokens.
- Buy property with secondary account.
- Check if balance of first account increased.
- Check your wallet to see if you have the House Token
- Create another property.
- Update the price of a property that you own.
- Cancel the sale of a property you own that haven't had any sales yet
npm install
npm run dev
npm run build