Giter Site home page Giter Site logo

dapp-quick-started-template's Introduction

Quick started Dapp/Next.js Project

You can see this Demo on vercel.

The project

The main idea of this project is to use it as a frontend in Next.js base, to interact with one or several smart contracts defined within the project. It is necessary to make its corresponding deploy in hardhat to be consumed through this frontend. The entire boilerplate is already configured. Currently the project supports connecting to a wallet to start the communication between this frontend and the blockchain.

Deploy your smart contract

  1. Install all dependencies

    npm i
    
  2. Follow this tutorial consider the goerli network

  3. Update your contracts/.env file

    GOERLI_URL=https://eth-goerli.g.alchemy.com/v2/api-key
    PRIVATE_KEY=your-metamask-account-private-key
    ETHERSCAN_API_KEY=your-etherscan-api-key
    

Usefull links

Goerli Faucet

Goerli Etherscan

Update your Next.js project

  1. Install all dependencies

    npm i
    
  2. Update your web/.env.local file

     NEXT_PUBLIC_API_URI=http://localhost:3000/
     NEXT_PUBLIC_CONTRACT_ADDRESS=your-contract-address
     NEXT_PUBLIC_INFURA_ID=your-infura-id
     NEXT_PUBLIC_GOERLI_URL=your-goerli-url-project
    
  3. Run your project

    npm run dev
    

Main tutorials and tools used

Adding Web3 to Our NextJS TypeScript Project

Web3Modal

WalletConnect docs

WalletConnect Web3 Provider

Material UI

Material UI templates

dapp-quick-started-template's People

Contributors

e-burgos avatar

Watchers

 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.