This project is supposed to be a (very barebones) replica of AirBnB utilising blockchain technology to interact directly with a smart home system.
To run the web app:
-
run a blockchain locally (
ganache-cli
) -
Migrate the contract to the blockchain you have running (
truffle migrate
) -
navigate to the client directory, install React dependencies and run npm start:
cd client npm i npm start
-
The page will initially say
alert: Failed to load web3, accounts, or contract. Check console for details.
To resolve this, open MetaMask in the http://localhost:3000/ browser and importPrivate Key(0)
from theAccount(0)
from the running local Ganache blockchain node. Click on the link toAdd Property
, enter details and the property will be listed on theProperties page
.
You should currently be able to run the web app alongside a local blockchain. This will allow you to create rental properties and view them in the web app.