Giter Site home page Giter Site logo

dbank-frontend's Introduction

Profile.io Front-end

Description

Front-end for Profile.io's DIF hackathon submission that builds upon a minimalist Web3 boilerplate.

Supports MetaMask, WalletConnect and Coinbase Wallet login methods. WalletConnect provides a gateway for Safe Smart Contract Accounts to execute transactions and sign messages.

Users can link a sample DWN server to their Ethereum account. A dedicated Credit Checker DWN is responsible for issuing the User a Credit Score Credential. Once issued, the user can request a loan - the details for which, such as amount borrowable and interest - is dependent on their credit score record.

The dBank app presents a window into the future where users can take out unsecured loans, using their traditional credit information, in a manner that is decentralised, privacy-preserving, and secure - made possible by DWNs and Decentralised Identtity!

Known Bugs

  • Currently the user interface cannot detect when a Safe transaction has finished executing. This is a minor issue and there are some fixes that yet to be implemented.

Built With

  • React
  • typescript
  • AntDesign
  • web3react
  • prettier
  • ESLint

Installation

Make sure you have the following ready:

  • node.js installed (developped on LTS v18)
  • typescript installed (developped on v5.2.2)
  • yarn installed
  • MetaMask (or any web3 compatible wallet) installed in your browser

Once your config is ready, create a new repo, open your favorite code editor, and clone the repo with the following cmd:

git clone https://gitlab.com/tabled/profileio-frontend.git .

Install all package dependancies by running:

yarn install

IMPORTANT: Double check your package.json to make sure you've installed the exact same version for all @web3-react packages. Since the version 8+ is still in beta, it may not be automatically installed.

Add your API keys in the .env file:

Create a .env file at the root of your project and copy the content of the .env.example file into it. Then, fill in the following variables:

REACT_APP_INFURA_KEY = "your API key here";
...
REACT_APP_WALLETCONNECT_PROJECT_ID = "Project id needed for WalletConnect v2";

start the web3-boilerplate:

yarn start

Features:

  • Web3 Wallet (Metamask / Wallet connect / Coinbase)
  • Chain selector
  • Wallet balance
  • Sign Messages & Transfer Native
  • Dark mode support
  • Hook to query user's Token Balances
  • Hook to query user's NFTs

dbank-frontend

dbank-frontend's People

Contributors

samtabled avatar

Watchers

Sam Goodenough avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.