generator-angular-fullstack:如何运行服务器

通常你用典型的方式启动整个应用程序:

grunt serve 

但是这启动了整个应用程序,用sass编译等等。

有没有办法启动服务器端? 我肯定错过了什么! 我很乐意能够在Api部分工作,并快速testing,而无需启动整个应用程序。

 grunt serve-server // or something random like that? 

不,不像你期望的那样,开箱即用。 你可以在gruntfile.js中创build一个运行所需任务而不是其他任务的新任务,或者你可以直接运行

 node server.js 

这将运行应用程序,而不会运行任何咕task任务。