Truffle and Angular
Let's build a small Dapp using Truffle and Angular 4/5.
Note
This is not meant to be a tutorial on the inner workings of Angular. If you are not familiar with Angular, I suggest you read up on it first; here is a good place to start: https://angular.io/tutorial. Once you have a basic understanding of Angular, you are ready to begin this section.
Let's get started.
Like any good app, we need a robust and maintainable boilerplate before we start writing code. I've already set one up. Let's dive into the boilerplate.
angular-truffle-starter-dapp
You can find angular-truffle-starter-dapp
here: https://github.com/PacktPublishing/Truffle-Quick-Start-Guide/tree/master/chapter5/truffle-angular. At the time of writing this book, angular-truffle-starter-dapp
is the most used Angular and Truffle integration, with currently over 150 stars and 60 forks on GitHub.
Before we begin using this starter, we must ensure we have a folder to work out of. As usual, let's create some folders to begin...