app.jsis the file that configures AngularJS. It is not a web server, for example express. A Web server is required to service your Angular application. To do this, create a new web.jsfile that will launch the web server serving your appor your directory dist.
You will need to install expressand gzippousing npm for this to work.
Here is an example web.jsserving a folder app:
'use strict';
var gzippo = require('gzippo');
var express = require('express');
var nodeApp = express();
nodeApp.use(express.logger('dev'));
nodeApp.use(gzippo.staticGzip('' + __dirname + '/app'));
nodeApp.listen(process.env.PORT || 5000);
, app , dist, grunt. Angular , , grunt bower .