简体   繁体   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

Make sure you have installed Node.js Angular and MongoDB确保你已经安装了Node.js AngularMongoDB

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,要在浏览器中打开您的应用程序,

Go to http://localhost:4200/转到http://localhost:4200/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Node.js运行我的简单主干应用程序? - How do i run my simple backbone app from nodejs? 我将我的项目连接到 Mongodb 时出错,我该如何解决? - i have an error connecting my project to Mongodb , how do i fix it? AngularJs / GitHub:如何将无角种子克隆到我的新项目中而没有任何历史记录? - AngularJs/GitHub : How do i clone angular-seed to my new project without any history? 我的 Angular 不工作,我已经为它下载了正确的东西 - My Angular isn't working and I have downloaded the right things for it 是否可以使用我的本地网络/浏览器从给定网页下载 html 文件,就像我使用 javascript 或 nodejs 自己下载一样? - Is it possible to download an html file from a given webpage using my local network/browser as if I downloaded it myself with javascript or nodejs? nodejs,mongodb-如何处理来自多个查询的数据? - nodejs, mongodb - How do I operate on data from multiple queries? 如何将Github中的代码添加到Codepen项目中? - How can I add code from Github into my Codepen project? 如何从浏览器控制台查询我的MongoDB集合? - How can I query my MongoDB collection from the browser console? 如何获得在浏览器上运行的JQuery代码? - How do I get JQuery code to run on my browser? 如何运行自己的代码与浏览器交互? - How do I run my own code interacting with a browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM