Skip to content

RetricSu/polyjuice-provider-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@polyjuice-provider react test example

this project is a simple react dapp example used to test with @polyjuice-provider module.

How To Run

yarn

create .env file. (due to React's env variable issue, the extra REACT_APP_ prefix is required, and please do not use in production, it is unsafe).

cat > ./.env <<EOF
REACT_APP_WEB3_JSON_RPC=<godwoken web3 rpc>
REACT_APP_WEB3_WS_JSON_RPC=<godwoken web3 websocket rpc>
REACT_APP_PRIVATE_KEY=<your eth test private key, do not use in production>
REACT_APP_ETH_ADDRESS=<your eth test address, match with private_key above>
EOF

start run:

yarn start

go to browser and access http://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 86.3%
  • HTML 8.9%
  • CSS 4.8%