Tutorial for building SPA using AngularJS