GrigoriyMikhalkin / cra-template-web3js

web3.js app template for create-react-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cra-template-web3js

This is web3.js app template for Create React App.

It pre-installs web3.js library with Typescript type definitions and TypeChain library that helps to generate type definitions for Ethereum smart contracts. To generate contracts types, you can use predefined script gen-contracts(for example yarn gen-contracts).

Pre-defined project structure:

./src
 - abi/        -- storage dir for ABIs
 - contracts/  -- storage dir for TypeChain generated contract types

How to use this template

To use this template, use flag --template web3js when creating a new app. For example:

npx create-react-app my-app --template web3js

# or

yarn create react-app my-app --template web3js

For more information, please refer to:

About

web3.js app template for create-react-app


Languages

Language:TypeScript 59.4%Language:HTML 40.6%