Giter Site home page Giter Site logo

dapp-boilerplate's Introduction

OMG Counters

A minimal types-first boilerplate for Ethereum frontend dapp development.

typescript typed contracts typed contracts

Dapp Boilerplate

Includes:

Rationale

  • Next.js because it does automatic code-splitting and has a very minimal API. Much more performant and minimal than Create-React-App.

  • Typescript because you don't want to guess what type everything is.

  • ESLint to catch dangerous patterns that can cause bugs. The official recommended Typescript linting config is also included.

  • Prettier to enforce consistent formatting. This is setup to work with ESLint from the official Prettier documentation instructions.

  • Ethers.js has the best abstraction for working with the Ethereum blockchain so far.

  • Typechain so that all your contract instances have types. This means you always know what methods exist, what arguments they take, and also what the return type is.

Getting Started

Click "Use this template" at the top of this page, or click here to create your repo and clone locally.

  1. Run yarn to install dependencies.
  2. Run yarn typechain to generate the types for your contracts.
  3. Run yarn dev to begin developing.

Adding Contracts

To add a contract and have Typechain generate types for it, simply drop the contract's ABI (as a JSON file) into the contracts directory. Types are then generated by running yarn typechain and output to the contracts/types directory.

Contributing

Make an issue to talk about what you'd like to see!

PRs welcome, let's build this together! Frontend devs unite!

dapp-boilerplate's People

Contributors

adrianmcli avatar jennypollack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dapp-boilerplate's Issues

Example and license

Thank you for making this project!

Would appreciate if you could add a MIT license

Also a hosted example would be helpful to see how it looks on an example contract

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.