1.1.2 • Published 4 years ago
cra-template-ethereum-fullstack v1.1.2
Ethereum Fullstack Template
This repository contains a create-react-app template that can be used to develop an ethereum dApp.
Quick Start
Create a project using this template
$ create-react-app project-name --template ethereum-fullstackSwitching to test network (RINKEBY)
- Change line -
const NETWORK = LOCAL_NETWORKtoconst NETWORK = TEST_NETWORKinhardhat.config.js - Replace
YOUR_ALCHEMY_API_KEYwith your api key from alchemy in.envfile - Replace
YOUR_WALLET_PRIVATE_KEYwith your wallet's private key from metamask wallet in.envfile
- Change line -
Running test for sample contract
npx hardhat testRunning your app
npm start
What’s Included?
Your environment will have following set up:
- A sample frontend: Sample application which uses Create React App along with its test.
- Common utilities: Utilities to plug into dApps.
- Hardhat: An Ethereum development task runner and testing network.
- Mocha: A JavaScript test runner.
- Chai: A JavaScript assertion library.
- ethers.js: A JavaScript library for interacting with Ethereum.
- Waffle: To have Ethereum-specific Chai assertions/mathers.
Trouble Shooting
Error HH8: There's one or more errors in your config fileerror: If you get this error try setting up yourYOUR_ALCHEMY_API_KEYandYOUR_WALLET_PRIVATE_KEYin .env file