In each chapter of this book, I'm going to give you a homework assignment to be completed before you start the next day or chapter. Today's homework assignment is all about getting your development environment set up. Not only is this going to help you complete the remainder of this book, but the tools I'm going to show you will help you across every blockchain project you take on. Here's what you need to do:
- Install Visual Studio Code. This is the only step that's optional, and it's optional only if you already have a code editor that you know and love.
- Install Node.js from nodejs.org.
- Install Ganache from the Truffle framework website.
- Install the Truffle framework itself using the npm module.
If you've installed Truffle previously, be sure to check that you have at least Truffle version 4.1 installed, and if not update it. You can always check your Truffle version using the truffle version command.
- Finally, install the course code using the truffle unbox command and the URL for the GitHub repo of this book.
- When that is done, launch Terminal or Command Prompt, depending on your operating system, change to the directory where you downloaded the code, and type truffle test.
If all goes well, Truffle will report back a success message as shown in the following screenshot: