簡體   English   中英

如何同時運行node.js和angular2 +

[英]How to run node.js and angular2+ at the same time

我在文件夾“ UI”中有帶有Angular4CLI的node.js項目

node.js package.json:

 ... "scripts": { "start": "node index.js" } ... 

和Angular package.json:

 ... "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" } ... 

如何同時啟動node.js和angular?

我嘗試了錯誤的解決方案:

 "scripts": { "start": "node index.js && ng serve", "start-2": "node index.js && cd .\\ui\\ && ng serve", } 

請幫忙。 謝謝提前

我建議研究角度通用。

https://github.com/angular/universal-starter

該文檔清楚地說明了用法,並且那里也有一些不錯的種子存儲庫。

尋找qdoubles材質預渲染的webpack-starter,將現有應用程序合並到此starter中確實很簡單。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM