Skip to content

contractful/frontend-v1

Repository files navigation

contractful frontend

Vercel

🙌️ News: For early MVP access, click here to participate in our survey from Nov to Dec 2022.

The frontend that makes peer-2-peer, safe and secure Hiring Agreements accessible to everyone.

✨ Official demo: https://contractful.vercel.app/.

For details on the protocol and user case in general, please visit the contractful protocol's README.

You will also find more details on the devpost page on the contractful project.

Quick start

  • Beta contractful Hiring Agreements run on the Polygon Mumbai testnet and are quoted in fDAI (fake DAI).
  • As a client:
    • Visit: https://contractful.vercel.app/.
    • Choose to create an Agreement.
    • Connect your Wallet (specifically for the client).
    • Fill out the details of Hiring Agreement (incl. a description, engagement period and start, as well as the pre-defined hourly rate) and create it.
    • You are now able to review the newly created Hiring Agreement. Your partner is now able to consent to it.
  • As a freelancer or service provider:
    • Also, visit: https://contractful.vercel.app/.
    • Navigate to review an Agreement and connect the Wallet of the freelancer or service provider (that is different to the client's wallet address).
    • Read the Agreement carefully, and choose to consent to it.

😃 Enjoy full security and automation while focussing on building awesome web3 tech.

Local setup

The full protocol of the solution can be interfaced by using the official demo (see above). Anyway, here you will learn here, how to use the contractful frontend just from your local machine.

To fire up the fronted locally, please use the following instructions:

  • Make sure, you have node and npm installed. The project is tested with:
% node --version
v18.7.0

% npm --version
8.15.0
  • git clone this repository.
  • cd into frontend-v1.
  • When starting the frontend for the first time, please install all dependencies: npm i.
  • Use npx next dev to start the frontend.
  • Finally, visit: http://localhost:3000/.

Use IPFS

Specify the key to access the IPFS Gateway API in the .env.local variables. The contractful frontend uses the following service: https://web3.storage/. Also, you can optionally specify an AES encryption key in your .env.local.

👍 Well done - you are now able to create, deploy and sign trustless decentralized Hiring Agreements from your local machine.

Notes for development

Build and lint

Use the following command to build or lint the frontend application:

# Building:
npx next build

# Linting:
npx next lint && npx tsc --noEmit

# Combined in a pre-commit hook:
npm run pre-commit

Initial bootstrap of the frontend application

Initially, this application was bootstrapped using the following commands (for the UI application skeleton):

npx create-next-app@latest --typescript

npm i mui@latest
npm i @mui/material @emotion/react @emotion/styled
npm i @mui/icons-material
npm i @mui/x-date-pickers
npm i dayjs
npm i react-cookie

[...]

There are several other libraries involved (e.g. for the integration of the browser Wallet and the Polygon blockchain). Please visit ./package.json for a complete list of all dependencies.

😀 Have fun coding!

About

Trustless and Decentralized Contracting Solution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages