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
yarn
ornpm install
in root directory. - Run
npx hardhat node
in root directory. - Run
yarn deploy-l
in root directory. - Copy address at which contract is deployed.
- Change directory to client and run
yarn
ornpm install
. - Open
client/src/utils/constants
& replace the contract address with the copied address. - Run
yarn start
ornpm run start
in client. - If changes are made to the contract, run
gen-contract-types
to 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
require
statements - Wrote tests myself.
- Created client in React with web3.js myself