MEAN.js 和 MEAN.io 的区别 [英] Difference between MEAN.js and MEAN.io

查看:26
本文介绍了MEAN.js 和 MEAN.io 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 MEAN JavaScript 堆栈,但我注意到有两个不同的堆栈,它们都有自己的网站和安装方法:mean.js 和 mean.io.所以我问自己这个问题:我用哪个?".

I wanted to use the MEAN JavaScript Stack, but I noticed that there are two different stacks with either their own website and installation methods: mean.js and mean.io. So I came up asking myself this question: "Which one do I use?".

所以为了回答这个问题,我问社区你是否能解释一下这两者之间的区别是什么?如果可能的话,利弊?因为他们长得和我很像.

So in order to answer this question I ask the community if you could explain what are the differences between these two? And if possible pros and cons? Because they look very similar to me.

推荐答案

它们本质上是一样的...它们都使用 swig 进行模板化,它们都使用 karma 和 mocha 进行测试、passport 集成、nodemon 等.

They're essentially the same... They both use swig for templating, they both use karma and mocha for tests, passport integration, nodemon, etc.

为什么这么相似?Mean.js 是 Mean.io 的一个分支,这两项举措都是由同一个人发起的...... Mean.io 现在在保护伞之下公司 Linnovate 和看起来像的家伙 (Amos Haviv) 停止了与这家公司的合作并开始了 Mean.js.您可以在此处详细了解原因.

Why so similar? Mean.js is a fork of Mean.io and both initiatives were started by the same guy... Mean.io is now under the umbrella of the company Linnovate and looks like the guy (Amos Haviv) stopped his collaboration with this company and started Mean.js. You can read more about the reasons here.

现在...您现在可以看到的主要(或微小)差异是:

Now... main (or little) differences you can see right now are:


脚手架和锅炉板生成

Mean.io 使用名为mean"的自定义 cli 工具
Mean.js 使用 Yeoman 生成器

Mean.io uses a custom cli tool named 'mean'
Mean.js uses Yeoman Generators


模块化

Mean.io 使用更独立的节点包模块化,模块内包含客户端和服务器文件.
Mean.js 仅在前端使用模块(用于 angular),并将它们与 Express 连接.虽然他们也在研究垂直模块......

Mean.io uses a more self-contained node packages modularity with client and server files inside the modules.
Mean.js uses modules just in the front-end (for angular), and connects them with Express. Although they were working on vertical modules as well...


构建系统

Mean.io 最近迁移到 gulp
Mean.js 使用 grunt

Mean.io has recently moved to gulp
Mean.js uses grunt


部署

两者在各自的存储库中都有 Dockerfile,Mean.io 可以在 Google Compute Engine 上一键安装,而 Mean.js 也可以通过一键安装在 Digital Ocean 上部署一>.

Both have Dockerfiles in their respective repos, and Mean.io has one-click install on Google Compute Engine, while Mean.js can also be deployed with one-click install on Digital Ocean.


文档

Mean.io 有不错的文档
Mean.js 有很棒的文档

Mean.io has ok docs
Mean.js has AWESOME docs


社区

Mean.io 拥有更大的社区,因为它是原始样板
Mean.js 动力不足但稳定增长

Mean.io has a bigger community since it was the original boilerplate
Mean.js has less momentum but steady growth


在个人层面上,我更喜欢 MeanJS 的哲学和开放性,更喜欢 MeanIO 的牵引力和模块/包方法.两者都很好,您最终可能会修改它们,因此选择其中一个不会出错.只需将它们作为起点和学习练习即可.


On a personal level, I like more the philosophy and openness of MeanJS and more the traction and modules/packages approach of MeanIO. Both are nice, and you'll end probably modifying them, so you can't really go wrong picking one or the other. Just take them as starting point and as a learning exercise.


MEAN 是一种通用方式(由 Valeri Karpov 创造) 来描述一个以Mongo + Express + Angular + Node"为基础的样板/框架.您可以在此堆栈中找到使用其他名称的框架,其中一些非常适合 RAD(快速应用程序开发)和构建 SPA.例如:

MEAN is a generic way (coined by Valeri Karpov) to describe a boilerplate/framework that takes "Mongo + Express + Angular + Node" as the base of the stack. You can find frameworks with this stack that use other denomination, some of them really good for RAD (Rapid Application Development) and building SPAs. Eg:

  • Meteor. Now with official Angular support, represents a great MEAN stack
  • StrongLoop Loopback (main Node.js core contributors and Express maintainers)
  • Generator Angular Fullstack
  • Sails.js
  • Cleverstack
  • Deployd, etc (there are more)

您还有黑客马拉松入门.它没有MEAN的A(它是'MEN'),但它很摇滚..

You also have Hackathon Starter. It doesn't have A of MEAN (it is 'MEN'), but it rocks..

玩得开心!

这篇关于MEAN.js 和 MEAN.io 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆