正在节点上设置Angular phonecat应用程序

Setting up Angular phonecat application on node

本文关键字:Angular phonecat 应用程序 设置 节点      更新时间:2023-09-26

我是Angular的新手,正在尝试设置Angular phonecat应用程序。

我已经从这里下载了代码

https://docs.angularjs.org/tutorial/

并安装了nodejs。

现在,我不知道如何映射angular应用程序以使用nodejs运行。

从其他链接中,我看到每个人都在运行webserver.js文件,但在script目录下没有看到任何内容。

scripts]$ tree .
.
├── private
│   ├── old
│   │   ├── format-json.sh
│   │   ├── goto_step.bat
│   │   ├── goto_step.sh
│   │   ├── README.md
│   │   ├── ScrapeData.js
│   │   └── snapshot.sh
│   ├── push-to-github.sh
│   ├── README.md
│   ├── retag.sh
│   ├── test-all.sh
│   └── update-gh-pages.sh
└── update-repo.sh

如何在nodejs中运行应用程序。

如果查看链接的页面,则应该在使用npm install安装NPM依赖项后在主目录中运行npm start

编辑:在检查了他们的package.json之后,你实际上可以运行npm start。它还将运行依赖项安装。