2

I've been looking at different MERN (Mongo-Express-React-Node) builds and really like the look of mern.io. I see how everything fits together in a general sense, although the details of the inner-workings often evades me.

When I attempted to modify the base code by manually creating a new module, it was no bueno. The docs indicate that mern.json can be used to generate new modules, but does not explain how to do so.

How can this file be used to generate new modules?

4

1 回答 1

3

当前有关 mern.io 和 mern-starter 的文档缺少此信息。但是,您可以在 mern-cli 包中找到它https://github.com/Hashnode/mern-cli

使用 mern 生成器生成 React 组件、Express 路由和控制器以及 Mongoose 模型。

列出所有可用的生成器

合并

如果尚未安装,请在包 README 中找到 mern-cli 的安装说明。这将允许您利用生成器。

于 2016-11-16T00:37:20.403 回答