Delance is a freelancing platform in which the participants are a freelancer and an employer. All of the freelancing projects have two important attributes: deadline and price. The employer wants to get the project before the deadline and the freelancer needs to get the project fee once he has delivered the project. The freelancer may also want to break the project to milestones and requests for payment after finishing each part. On the other hand, the employer would like to have some guarantee to make him sure the project will be delivered before the deadline.
- Run
yarnornpm installin root directory. - Run
npx hardhat nodein root directory. - Run
yarn deploy-lin root directory. - Copy address at which contract is deployed.
- Change directory to client and run
yarnornpm install. - Open
client/src/utils/constants& replace the contract address with the copied address. - Run
yarn startornpm run startin client. - If changes are made to the contract, run
gen-contract-typesto generate types for the contract to be consumed in React
- Followed tutorial by Behzad Pournouri for creating contract.
- Made a few changes to contract such as adding more
requirestatements - Wrote tests myself.
- Created client in React with web3.js myself