Skip to content
Solidity Contracts and React-Redux dApps Boilerplate.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
contracts
graph
migrations
test
.babelrc
.env.sample
.eslintignore
.eslintrc
.gitignore
.solcover.js
.soliumignore
.soliumrc.json
.travis.yml
LICENCE
README.md
package-lock.json
package.json
truffle.js

README.md

React Solidity Boilerplate

tested with jest License: MIT Dependency Status devDependency Status Build Status

Usage

Start new project

git clone https://github.com/powerpiper/react_solidity
cd react_solidity
npm i
cd app
npm i

Start dApp in development

npm run rpc
truffle compile --network development
truffle migrate --network development --reset
// copy contract files to dApp:
npm run copy
cd app
npm start

Deploy through local geth

Edit .env for owner wwallet.

cross-env ENV=production npm run geth:rinkeby
truffle migrate --network rinkeby
npm run copy

Deploy through Infura

Edit .env for your Infura API key and owner wallet.

cross-env ENV=production truffle migrate --network main
npm run copy

Test

npm run rpc
npm run test

Lint contract

npm run lint:contract
npm run lint:contract:fix

Flatten contract

npm run flatten

Make graph of the contract

npm run graph

And then see graph/.

Clean

npm run clean

Coverage

npm run coverage

Run dApp

cd app
npm start

Contribute

PRs welcome.

Technologies

License

MIT

You can’t perform that action at this time.