https://thehardcoder05.github.io/dappPracticeWebpack/
- Node.js
- Truffle and Ganache
- NPM
git checkout master
- Run
npm installin project root to install Truffle build and smart contract dependencies - Run local testnet in port
8545with an Ethereum client, e.g. Ganache truffle migrate --network developmenttruffle console --network development- Run tests in Truffle console:
truffle test developmentnetwork id is 1337, remember to change it in Metamask as well!
cd client- To install the dependecies -
npm install - To build artifacts -
npm run build - To run the app -
npm run dev - Open
http://localhost:8080
0xA7D88AB5987b7837d9C6aE2A07f5df4575a502EB
User and apartment owner enter an agreement for renting a property, i.e. exchanging usage rights to an apartment for as long as payments are made to a specific Ethereum account before the agreed deadline.
User receives a keycode / access token to the apartment after first payment. If a user's payments are late, they will receive a reminder after one week. After e.g. 30 days (variable depending on local jurisdiction) of no payments, usage rights will be automatically transferred back to owner and apartment access rights will be revoked from user. User agrees to this procedure when entering contract with owner.
- Checking for received payments and transferring ownership back to owner on non-payment cases could be scheduled with e.g. Gelato Network (https://docs.gelato.network/tutorial).
- Opening door locks could be done with an app with smart locks, e.g. https://api.getkisi.com/docs. Smart lock APIs won't be explored in this project.
- Navigate to the Application URL
- MetaMask prompts to user for login
- Ensure your MetaMask's address(0x0) showing in the Driver's address field approriately.
- Entering your Personal Information such as Full name and Driving License Id - The Driving Identify Id will be stored as hash value for GDPR compliance. (In the LIVE production version this information should handle by legitimate KYC process).
- Enter the desire days to rent with the exact deposit amount.
- Hit "Book Me" button in a few minutes later you shall receive SMS or email regarding the booking confirmation(In phase 3). To inform about collecting the car key.
- Enjoy your ride!!!!
- Agent to withdraw or refund back the Driver if and only if the Driver didn't violate traffic rules or met any accident.
- The Withdraw amount should be the 70% of the total amount of the deposit; 30% is the renting fee charge.
- Greets to the Driver and see you soon!!
client: Project's React frontend.contracts: Smart contracts that are deployed in the Ropsten testnet.migrations: Migration files for deploying contracts incontractsdirectory.test: Tests for smart contracts.
- .key file - Infura Gateway's Project Id
- .secret - MetaMask Mnemonic key