簡體   English   中英

如何在瀏覽器上運行從 Github 下載的 Angular nodejs 和 MongoDB crud 項目?

[英]How do I run an Angular nodejs and MongoDB crud project I have downloaded from Github on my browser?

Zipfile 包含一個 AngularApp 文件夾和一個 Nodejs 文件夾。

轉到 AngularApp 文件夾並在命令提示符或 shell 中執行命令ng serve ,然后轉到 NodeJs 文件夾在單獨的命令提示符或 shell 中執行node index.js

確保你已經安裝了Node.js AngularMongoDB

確保您的 mongoDB 已啟動並正在運行。

現在轉到/Node.js目錄並運行

npm i // install the dependencies

node index.js // run server

這將使您的節點服務器在端口 3000 上運行

轉到/AngularApp目錄

npm i // install the depencies

ng serve // run application

現在您的整個應用程序應該啟動並運行。 要在瀏覽器中打開您的應用程序,

轉到http://localhost:4200/

暫無
暫無

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

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