Created
December 13, 2017 10:50
-
-
Save DaveHudson/54c6afad6b5de079a89b227aa00fc172 to your computer and use it in GitHub Desktop.
Truffle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Truffle globally | |
npm install -g truffle | |
# Download the box. This also takes care of installing the necessary dependencies | |
truffle unbox react | |
# Run the development console | |
truffle develop | |
# Compile and migrate the smart contracts | |
compile | |
migrate | |
# Run webpack server for front-end | |
# Smart contract changes must bemanually recompiled and migrated | |
npm run start | |
# Run Truffle tests | |
truffle test | |
# test React components | |
npm run test | |
# Production build of React app | |
npm run build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment