• Stars
    star
    112
  • Rank 312,240 (Top 7 %)
  • Language
    TypeScript
  • Created almost 4 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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!

More Repositories

1

eth95

🛠️ A smart contract UI for your Ethereum dapp project
TypeScript
527
star
2

web3-vs-ethers

A basic cheatsheet of Web3.js vs Ethers (along w/ example apps!)
JavaScript
377
star
3

react-rotating-text

📝 A simple react component to display an array of words/sentences with a typewriter effect.
JavaScript
223
star
4

truffle-next

🛰️ A boilerplate Truffle Box project with Next.js for rapid Ethereum Dapp development
JavaScript
194
star
5

react-reveal-text

✨ A small react library for animating the revealing of text.
JavaScript
186
star
6

omg-counters

😍 Increment decrement counters using various frontend frameworks.
48
star
7

truffle-react

⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development
JavaScript
46
star
8

firebase-nextjs-example

An example app for using firebase with Next.js
JavaScript
19
star
9

js-state-encapsulation

Examples of state encapsulation in Javascript
JavaScript
19
star
10

ganache-jest-example

🚀 Minimal Solidity contract testing with Ganache and Jest
JavaScript
15
star
11

next-boilerplate

📐 A modern universal boilerplate for React applications using Next.js.
JavaScript
14
star
12

styled-mui-next

An example application of using Styled-Components and Next.js with Material-UI
JavaScript
13
star
13

drizzle-react-from-scratch

Trying to learn Drizzle by making projects with it from scratch
JavaScript
9
star
14

react-build-dist

A simple utility for compiling your React components to standalone modules.
JavaScript
9
star
15

rehydrate-workshop

A small collection of basic components built with Rehydrate 💧.
OCaml
7
star
16

simple-js-blockchain

🔗 A simple JS blockchain using only Flow types and functions
JavaScript
6
star
17

ethbtc-example

JavaScript
5
star
18

with-redux-combineReducers

JavaScript
3
star
19

react-build-lib

A simple utility for compiling your React components to CommonJS modules.
JavaScript
3
star
20

nextjs-symlink-bug

JavaScript
3
star
21

olis

A collaborative chat platform for the web built with Meteor and React
JavaScript
3
star
22

hodlbuddy

A script for me to see how much my cryptocurrency portfolio is worth
JavaScript
2
star
23

nouns.run

TypeScript
2
star
24

zenith

🌌 A better API wallet for ZenCash
JavaScript
2
star
25

meta-auth-example

An example usage of MetaAuth with a React frontend and an Express backend
JavaScript
2
star
26

create-react-app-brunch

Create simple configurable React apps with a Brunch-based CLI.
JavaScript
2
star
27

simple-express-jest

A simple ExpressJS and Jest starter project for absolute beginners
JavaScript
2
star
28

learn-more-cs

A simple project for us to track and manage our learning of certain computer science principles.
2
star
29

dev-react-component

A minimalistic boilerplate for publishing a React component to NPM.
JavaScript
2
star
30

twilio-sms-verification-example

A minimalistic example of SMS verification with Twilio using a React app and a Node server.
JavaScript
1
star
31

web3-CI-bug

1
star
32

simple-zap

An attempt to demonstrate a simple zap contract
Solidity
1
star
33

hangtight.club

🎟️ A queue ticketing system for Nounish events!
Solidity
1
star
34

consensys-rxjs-talk

Example project for my RxJS talk w/ ConsenSys (along w/ a Drizzle-Utils demo)
JavaScript
1
star
35

practice-typing

A simple Angular 2 app to help people practice typing phrases on their keyboard.
TypeScript
1
star
36

track-page-requests

A node.js script for tracking page requests
JavaScript
1
star
37

repro-ganache-bug

JavaScript
1
star
38

defi-experiments

TypeScript
1
star
39

web3-CI-bug-npm

1
star
40

cruise-reviews

JavaScript
1
star
41

lookintodefi

1
star
42

hackernews-node

TypeScript
1
star
43

bc-parks

JavaScript
1
star
44

repro-eth-block-tracker-bug

JavaScript
1
star
45

non-overwhelming-zkp

1
star
46

decoder-import-bug

JavaScript
1
star
47

buidler-deploy-repro

A reproduction repo of buidler deploy not showing contract addresses for a local deploy
JavaScript
1
star