I'm trying to use ExpressJS with the scaffolded version of Angular that is installed by the AngularJS Yeoman generator. I'd prefer to use the scaffolded version created by the Yeoman Team rather than use the angular-fullstack or express versions. So I manually installed Express JS in a server folder within my project.
-app //Angular files are here
-server //Node JS files are here
I think the connect server is currently being used instead of Express. Is there a way to change the grunt file to require Express instead?
I think this is the relevant code in my gruntfile.js:
// The actual grunt server settings
connect: {
options: {
port: 9000,
// Change this to '0.0.0.0' to access the server from outside.
hostname: 'localhost',
livereload: 35729
},
livereload: {
options: {
open: true,
middleware: function (connect) {
return [
connect.static('.tmp'),
connect().use(
'/bower_components',
connect.static('./bower_components')
),
connect().use(
'/app/styles',
connect.static('./app/styles')
),
connect.static(appConfig.app)
];
}
}
}