MegaRacer MegaRacer - 2 months ago 28
AngularJS Question

Gulp connect gives me cannot GET/ with angular app

I am trying to setup a simple boilerplate wth gulp, browserify,angular and node.js However, I get error of

cannot GET
.

Folder structure

Here's boilerplate url on github https://github.com/kushalmahajan/angular_boilerplate.git

Dan Dan
Answer

You need to change the root directory inside of your connect task to serve files from app/.

gulp.task('connect', function(){
    connect.server({
        root: 'app',
        port: 4000 
    })
})