Giter VIP home page Giter VIP logo

web3-dapp's Introduction

web3-Dapp

The web3 app was built with the intention of using the modern web3 technologies to interact with Metamask and return the ERC20 token balances in your wallet while giving an interactive and smooth UI. Fully responsive and has Dark and Light Mode features. I used Moralis Web3 API. Moralis supports the most popular blockchains and their test networks. Check it out https://docs.moralis.io/web3-data-api

Installation (for standard modern project) and run project

  • edit the .env.local configurations
yarn add
yarn next build
yarn run dev

How to use?

  1. On page load the app renders a table of Coins (10) from an API, this is the Home page.
  2. This table has a sorting feature which can let you sort on all columns (by ID, Coin name, Symbol and Value).
  3. On the wallet page, you get a screen that displays the Metamask logo and a connnect button,
  4. The connect button sends a request to Metamask and once approved by the user, takes you the Balance page,
  5. The balance page displays the Network you are on, the connect symbol, your current Account ID (formatted), a copy to clipboard feature and a logout button.
  6. Just right below will appear your list of ERC20 tokens, with their names, values and Symbol and if there aren't any available it will display a text that says you havev none.

Requirements to run the project successfully using the Vercel link

  1. Metmask web extension
  2. Some ERC20 token balances

Demo

Home Page: Screenshot 2023-01-06 at 13 09 05

Wallet Page: Screenshot 2023-01-06 at 13 09 14

Connecting to Metamask: Screenshot 2023-01-06 at 13 09 37

Balance Page: Screenshot 2023-01-06 at 13 09 54

Live link

https://web3-dapp-dusky.vercel.app/

Stack

next.js typescript chakra ui wagmi moralis

web3-dapp's People

Contributors

okekejr avatar

Stargazers

 avatar

Watchers

 avatar

web3-dapp's Issues

create project and cleanup

Tasks:

  • create nextjs project with typescript, chakra ui, wagmi, and moralis
  • add fonts and styles
  • edit app.js and establish a hierarchy

ERC20 balances

Tasks:

  • create the ER20 component
  • query the session and pullout the ERC20 coin balances, coin names, symbols and values
  • display them in a list format on the card

Screenshot:

simple-3

balancePage

Tasks:

  • create the balance page
  • create a card component
  • add network name, Connected signal, user address,
  • add copy and logout icons with features

Design:

simple-3

coinlist page

Tasks

  • create the table list page on the homepage
  • create async function and fetch data from API
  • map through the data and render a table with columns { coin name, symbol, and the last price }
  • add assets { coins }
  • add sorting feature

Design:

Screenshot 2022-12-30 at 19 41 35

wallet/Connect page

Tasks:

  • create the wallet page
  • create connect button component
  • add the metamask logo and connect button

Screenshot:

Screenshot 2022-12-30 at 19 41 47

navbar Component

Tasks

  • create a layout component
  • create the main navbar and pass it as children to the layout component
  • add the home and wallet page
  • add the light and dark mode icons and functionality

Design:

Screenshot 2023-01-03 at 14 15 00

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.