user2152535
user2152535

Reputation: 41

integration of yeoman 1.0 with express

I have an AngularJs Web App which I build with Yeoman, would like to integrate Express into the mixture. The last part is what I am stuck on. I have Yeoman (1.0) aka Yo which basically uses Grunt and Bower but unfortunately serves all the files off its static server.
How would I write a GruntFile to have Yeoman 1.0 serving off the Express and not a Yo's baked in server and what should be the project's dir structure.

Any help would be greatly appreciated.

Upvotes: 4

Views: 1166

Answers (1)

passy
passy

Reputation: 7211

You can replace grunt-contrib-connect, which is the Yeoman default, with grunt-express. It accepts a server configuration setting which you can use to provide custom logic behind certain routes.

Upvotes: 1

Related Questions