Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
172 views
in Technique[技术] by (71.8m points)

javascript - MEAN.js和MEAN.io之间的区别(Difference between MEAN.js and 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.(我想使用MEAN JavaScript Stack,但我注意到有两个不同的堆栈,它们有自己的网站和安装方法:mean.js和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.(因为它们看起来和我很相似。)   ask by CMPSoares translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

They're essentially the same... They both use swig for templating, they both use karma and mocha for tests, passport integration, nodemon, etc.(它们基本相同......它们都使用swig进行模板化,它们都使用业力和摩卡进行测试,护照集成,nodemon等。)

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.(Mean.js是Mean.io的一个分支,两个倡议都是由同一个人开始的...... Mean.io现在在Linnovate公司的保护伞下,看起来那个人(Amos Haviv)停止了与这家公司的合作,开始Mean.js.) You can read more about the reasons here .(您可以在此处详细了解原因。) Now... main (or little) differences you can see right now are:(现在......您现在可以看到的主要(或很小)差异是:)
SCAFFOLDING AND BOILERPLATE GENERATION(脚手架和锅炉生成) Mean.io uses a custom cli tool named 'mean'(Mean.io使用名为'mean'的自定义cli工具)
Mean.js uses Yeoman Generators(Mean.js使用Yeoman Generators)
MODULARITY(模块性) Mean.io uses a more self-contained node packages modularity with client and server files inside the modules.(Mean.io使用更自包含的节点包模块化,模块内部包含客户端和服务器文件。)
Mean.js uses modules just in the front-end (for angular), and connects them with Express.(Mean.js仅在前端使用模块(用于角度),并使用Express连接它们。) Although they were working on vertical modules as well...(虽然他们也在研究垂直模块......)
BUILD SYSTEM(建立系统) Mean.io has recently moved to gulp(Mean.io最近已经开始了)
Mean.js uses grunt(Mean.js使用grunt)
DEPLOYMENT(部署) 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 .(两者都有各自的Repos中的Dockerfiles,而Mean.io可以在Google Compute Engine上一键安装,而Mean.js也可以在Digital Ocean上一键安装 。)
DOCUMENTATION(文档) Mean.io has ok docs(Mean.io有好的文档)
Mean.js has AWESOME docs(Mean.js有很棒的文档)
COMMUNITY(社区) Mean.io has a bigger community since it was the original boilerplate(Mean.io拥有更大的社区,因为它是最初的样板)
Mean.js has less momentum but steady growth(Mean.js势头较小但增长稳定)
On a personal level, I like more the philosophy and openness of MeanJS and more the traction and modules/packages approach of MeanIO.(在个人层面上,我更喜欢MeanJS的理念和开放性,以及更多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.(只需将它们作为起点和学习练习。)
ALTERNATIVE “MEAN” SOLUTIONS(替代“平均”解决方案) 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.(MEAN是一种通用的方式(由Valeri Karpov创造)来描述以“Mongo + Express + Angular + Node”作为堆栈基础的样板/框架。) You can find frameworks with this stack that use other denomination, some of them really good for RAD (Rapid Application Development) and building SPAs.(您可以找到使用此堆栈的框架,这些框架使用其他面额,其中一些非常适合RAD(快速应用程序开发)和构建SPA。) Eg:(例如:) Meteor .(流星 。) Now with official Angular support , represents a great MEAN stack(现在有了官方的Angular支持 ,代表了一个伟大的MEAN堆栈) StrongLoop Loopback (main Node.js core contributors and Express maintainers )(StrongLoop Loopback (主要Node.js核心贡献者和Express维护者 )) Generator Angular Fullstack(发电机角度Fullstack) Sails.js(Sails.js) Cleverstack(Cleverstack) Deployd, etc (there are more)(Deployd等(还有更多)) You also have Hackathon Starter .(你也有Hackathon Starter 。) It doesn't have A of MEAN (it is 'MEN'), but it rocks..(它没有A的意思(它是'MEN'),但它摇滚..) Have fun!(玩得开心!)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...