[英]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
。
Make sure you have installed Node.js Angular and MongoDB确保你已经安装了Node.js Angular和MongoDB
Make sure your mongoDB is up and running.确保您的 mongoDB 已启动并正在运行。
Now go to /Node.js
directory and run现在转到
/Node.js
目录并运行
npm i // install the dependencies
node index.js // run server
This will make your node server run on port 3000这将使您的节点服务器在端口 3000 上运行
Go to /AngularApp
directory转到
/AngularApp
目录
npm i // install the depencies
ng serve // run application
Now your whole application should be up and running.现在您的整个应用程序应该启动并运行。 To open your application in the browser,
要在浏览器中打开您的应用程序,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.