The course is part of this learning path
This will have two effects, first of all, it will be much faster, and second of all, if you develop something it will be much easier to read. So, if you have a look now, you have all the source here uncompressed and in a way that it's easier to read. So, if something happens for example, here there is an error connection refused, couldn't connect to the contract, then you can just click on it and it will give you around the area where this happened. So, over here, for example, we have our EventListener load and we could to make this work go into the index.js and scroll to the bottom and change our HttpProvider to 8545. And you see when I saved this our webpack automatically reloads the base. So I don't have to reload our webpack server, it's called hot reload. And when I go back to my browser then I also don't have to reload anything. It is just reloading the page and only those parts of the page that really need reloading, it's also called hot reload. If you never worked with it, it's a little bit like magic. If you've worked with it, you never want to give this up anymore. So we want to stop here at this point. That is enough truffle boxes introduction. If you want to start off and follow along with this course, then truffle unbox webpack change the webpack.config.js file to add the compress false and the node development. And have a look if you can connect to your ganache by changing in the index.js on the very bottom here, the port where it says localhost 9545 changes to 8545. And you're good to go. That's it. I'll see you in the next lecture. But we are going to adapt this box from MetaCoin to our game.
Tom is a CTO, senior back-end developer, and systems architect with over twenty years of hands-on development experience in a variety of languages and systems. He has a CS master's degree and has been working with Ethereum and blockchain technologies since 2016.