based on https://github.com/angular-app/angular-app