Brick Chain Team Repo
Useful commands
- create new branch
git checkout -b 'BRANCH_NAME' - push your new branch to remote
git push -U BRANCH_NAME origin - subsequent pushes are just
git push - switch to existing branch
git checkout BRANCH_NAME - get the latest changes from remote github
git pull - commit your change
git add .andgit commit -m 'write your message' - install all node_moduels
npm installornpm update
React, Redux, Truffle, and Material-UI for bootstrapping a Dapp
In addition to Webpack and React, this box adds: React-Router, Redux and Material-UI for easy skinning of a Dapp.
Installation
Install the Truffle box.
truffle unbox hackingbeauty/react-dapp-boilerplateCompile and migrate the contracts.
truffle compile truffle migrateRun the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.
npm run startJest is included for testing React components and Truffle's own suite is incldued for smart contracts. Be sure you've compile your contracts before running jest, or you'll receive some file not found errors.
// Runs Jest for component tests. npm run test // Runs Truffle's test suite for smart contract tests. truffle testTo build the application for production, use the build command. A production build will be in the /dist folder.
npm run build
FAQ
Why is there both a truffle.js file and a truffle-config.js file?
Truffle requires the truffle.js file be named truffle-config on Windows machines. Feel free to delete the file that doesn't correspond to your platform.
Where is my production build?
The production build will be in the /dist folder. This is because Truffle outputs contract compilations to the build folder.
Built With
- css
- express.js
- ganache
- html
- javascript
- react
- redux
- solidity
- truffle
- uport
- web3
- webpack
Log in or sign up for Devpost to join the conversation.