O'Reilly logo

Truffle Quick Start Guide by Nikhil Bhaskar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing the build steps

To see our Dapp in action, we need to perform the following build steps. Follow them precisely to ensure we get a clean build every time. Essentially, we are compiling and migrating our contracts, then serving our web content.

  1. cd chapter1.
  2. truffle develop.
  3. Inside the Truffle development console, run the following:
    1. compile (this compiles our contracts)
    2. migrate (this migrates our contract to the network specified in truffle.js)
  1. In another terminal window/tab, in the chapter1 folder, run npm run dev.
  2. Navigate to http://localhost:8080/#/.
Depending on the version of truffle you install, you may see warnings thrown in your console after you compile your contracts. For example, at the time of the writing of this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required