Add component for viewing files for self, use bulma table.
Boilerplate for Front-end testing
Add component for viewing files for other users
Deploy Contracts to main net and then upload a few files.
Load different colours based on network
Improve Form Validation and UI
Try to add drizzle-front-end testing for components, this ought to be fun, maybe write an medium article about this.
Add Contact Us Page, FAQ Page, etc ...
Polish app, adding loading icons or render bulma icons, or font-awesome loading icons, add Contact Page.
Prereqs
node / npm and/or yarn
Ethereum Browser (metamask or coinbase wallet)
Static hosting (github pages and/or surge)
truffle, ganache-cli
Installation
Install Truffle and Ganache CLI globally. If you prefer, the graphical version of Ganache works as well!
npminstall-gtrufflenpminstall-gganache-cli
Download the box. This also takes care of installing the necessary dependencies.
truffleunboxdrizzle
Run the development blockchain, we recommend passing in a blocktime. Otherwise, its difficult to track things like loading indicators because Ganache will mine instantly.
// 3 second blocktime.ganache-cli-b3
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.
compilemigrate
Run the webpack server for front-end hot reloading (outside the development console). Smart contract changes must be manually recompiled and migrated.
// Serves the front-end on http://localhost:3000npmrunstart
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
// If inside the development console.test// If outside the development console..truffletest
Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.
// Run Jest outside of the development console for front-end component tests.npmruntest
To build the application for production, use the build command. A production build will be in the build_webpack folder.
npmrunbuild
Other doxity options
"interaction": {
"network": "2",
"providerUrl": "https://morden.infura.io/sign_up_to_get_a_hash"
},
// option to whitelist various data
"whitelist": {
// the keyname `all` will be used for whitelist defaults
"all": {
"abi": true,
"methods": true,
"bytecode": false, // bytecode is false or undefined, it won't be shown "source": false // source is false or undefined, won't be shown
},
"DigixMath": {
"source": true // source code uniquely shown for this contract, bytecode still hidden
}
}
请发表评论