GithubHelp home page GithubHelp logo

wagmi's Introduction

wagmi starter

A quick template with everything you need to get started with frontend Ethereum projects.

I love using wagmi for Ethereum projects, but I got tired of creating repos from scratch over and over. So I decided to create a starter repo that sets a create-react-app project with some mundane tasks already done such as creating a login modal, setting up a provider and some styles.

live demo

About wagmi

wagmi is a React Hooks library for Ethereum, built on ethers.js. It provides lots of fun hooks that make interacting with the blockchain a breeze.

You can read their full documentation here

Getting started

  1. You can clone or fork this repo.
  2. Install the dependencies.
cd wagmi-starter
yarn
  1. Add a .env file with the following values.
REACT_APP_ALCHEMY_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
REACT_APP_INFURA_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
REACT_APP_CHAIN_ID=1
REACT_APP_NETWORK=homestead
  1. Style your dapp however you want, feel free to delete anything you don't need.

A quick note on the state of wallectconnect & coinbase wallet and create react app.

Due to these packages relying on nodejs modules which are not supported anymore using webpack 5 (which comes with react-scripts 5) we have to do some hacky shit to be able to use them right now.

This starte takes care of all that for you but hopefully this is fixed soon and I can update this repo.

You can read more about the problem and the fix here

I also want to thank willisk for saving me hours of troubleshooting with this solution.

Thanks

  • A massive thank you to @awkweb for creating wagmi. I've loved using it thus far.

License

  • MIT

wagmi's People

Contributors

cosmoburn avatar

Watchers

James Cloos avatar Greg Smith 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.