Skip to content

Instantly share code, notes, and snippets.

@DaveHudson
Created December 13, 2017 10:50
Show Gist options
  • Save DaveHudson/54c6afad6b5de079a89b227aa00fc172 to your computer and use it in GitHub Desktop.
Save DaveHudson/54c6afad6b5de079a89b227aa00fc172 to your computer and use it in GitHub Desktop.
Truffle
# 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