如何使用flatiron节点框架创建web应用程序骨架

how do I create a web app skeleton using flatiron node framework?

本文关键字:web 应用程序 创建 框架 何使用 flatiron 节点      更新时间:2023-09-26

我在这里看到文档http://flatironjs.org/以创建应用程序骨架。指定的命令是

flatiron create <type> <app-name>

但我看不到"类型"的任何值。我尝试了http,但没有成功。感谢任何投入。

我认为文档可能与当前代码有点不同步。目前,据我所知,正确的命令行命令是:

flatiron create <app-name>

这将创建一个cli骨架应用程序,对于web应用程序,您必须按照http-sample.js文件的行对app.js文件进行一些更改,您可以在以下位置找到:

https://github.com/flatiron/flatiron/tree/master/examples

您还需要将并集添加到包依赖项中。

cmd:flatiron create <app-name>在默认情况下实际上会生成http应用程序骨架。如果您在cli上输入flatiron create --help,您将得到:

help: Generates a flatiron skeleton application. If no <type>
help: is specified an HTTP application will be created.
help: <type> can currently be either cli or http
help:
help: create <app-name> <type>