Answers:
他们本质上是相同的...他们都使用swig进行模板制作,他们都使用业力和摩卡咖啡进行测试,护照集成,nodemon等。
为什么如此相似?Mean.js是Mean.io的一个分支,这两个计划都是由同一个人发起的……Mean.io现在隶属于Linnovate公司,看起来这个人(Amos Haviv)停止了与该公司的合作,启动Mean.js。您可以在此处详细了解原因。
现在...您现在可以看到的主要(或很小)差异是:
脚手架和锅炉生成
Mean.io使用名为“ mean”的自定义cli工具
Mean.js使用Yeoman Generators
模块化
Mean.io使用模块中包含客户端和服务器文件的更加独立的节点包模块化。
Mean.js仅在前端(用于角度)使用模块,并将其与Express连接。尽管他们也在研究垂直模块...
建立系统
Mean.io最近移至大
口吃Mean.js使用grunt
部署
两者都在各自的仓库中都有Dockerfile ,Mean.io可以在Google Compute Engine上一键安装,而Mean.js也可以一键安装在Digital Ocean上进行部署。
文件资料
Mean.io拥有不错的文档
Mean.js拥有很棒的文档
社区
Mean.io有一个更大的社区,因为它是原始样板
Mean.js的动力较小,但增长稳定
就个人而言,我更喜欢MeanJS的理念和开放性,更喜欢MeanIO的牵引力和模块/封装方法。两者都很不错,而且您可能最终会修改它们,因此选择一个或另一个确实不会出错。只是将它们作为起点和学习练习。
MEAN是一种通用方法(由Valeri Karpov提出),用于描述以“ Mongo + Express + Angular + Node”作为堆栈基础的样板/框架。您可以在此堆栈中找到使用其他面额的框架,其中一些框架对于RAD(快速应用程序开发)和构建SPA非常有用。例如:
您也有Hackathon Starter。它没有A MEAN(它是“ MEN”),但它会晃动。
玩得开心!
首先,MEAN是M ongoDB,E xpress,A ngular和N ode.js 的首字母缩写。
它通常在“堆栈”中标识这些技术的组合使用。有没有这样的事“ 的 MEAN框架”。
利奥尔Kesos在Linnovate了这种混乱的优势。他购买了域名MEAN.io,并将一些代码放在https://github.com/linnovate/mean
幸运的是,他们得到了很多宣传,并且有越来越多关于MEAN的文章和视频。当您使用Google“平均值框架”时,mean.io是列表中的第一位。
不幸的是,https://github.com/linnovate/mean上的代码似乎设计得很差。
2月,我本人陷入陷阱。该网站mean.io的设计醒目,Github仓库拥有1000颗以上的星星。对质量提出质疑的想法甚至都没有想到。我开始尝试它,但是花了很长时间才偶然发现不起作用的东西,并使代码感到困惑。
提交历史也令人担忧。他们多次重新设计了代码和目录结构,并且合并新的更改非常耗时。
关于mean.io和mean.js代码的好处在于,它们具有Bootstrap集成。他们还通过PassportJs提供了Facebook,Github,Linkedin等身份验证并在MongoDB的后端上与AngularJS同步了前端模型的模型示例(文章)。
根据Linnovate的网站:
Linnovate是以色列领先的开源公司,拥有该国经验最丰富的团队,致力于创建高端开源解决方案。Linnovate是以色列唯一一家为企业建立和维护其下一个Web项目的企业提供AZ服务的公司。
从网站上看,他们的核心技能是Drupal(一种PHP内容管理系统),直到最近他们才开始使用Node.js和AngularJS。
最近我正在阅读Mean.js博客,事情变得更加清晰。我的理解是,主要的Java语言开发人员(Amos Haviv)离开Linnovate从事Mean.js的工作,离开MEAN.io项目的是那些刚开始接触Node.js开发人员的人,他们正在缓慢地理解事物的工作方式。
将来情况可能会发生变化,但现在我会避免使用mean.io。如果您正在寻找快速入门的样板,那么Mean.js似乎比mean.io更好。
这是几种应用程序启动器/生成器和其他技术(包括MEAN.js,MEAN.io和cleverstack)的并排比较。我会在寻找时间时不断添加替代方法,并且随着时间的推移,潜在提供的好处的列表也在不断增长。如今,它已达到1600左右。如果有人想帮助提高其准确性或完整性,请单击下一个链接,并就您所知道的事情进行问卷调查。
系统从该数据库中生成如下报告:
我的比较电子表格的“初学者权衡”工作表在每个生成器之间进行了全面的一对一比较。因此,您无需再扭曲挑剔的话来谈论您的最爱。
这是generator-angular-fullstack和MEAN.js之间的代码。百分比是基于我个人权重的每种福利的价值,其中理想的生成者为100%
generator-angle-fullstack提供了MEANJS.org没有提供的8%
MeanJS.org。提供了9%的generator-angular-fullstack无法提供的功能
这是MEAN.io和MEAN.js之间的一种格式,更具可读性
<table border="1" cellpadding="10"><tbody><tr><td valign="top" width="33%"><br><br><h1>MeanJS.org. provides these benefits that MEAN.io. doesn't</h1><br><br><b>Help</b>:<br> * Dedicated/searchable user group for questions, using github issues<br> * There's a book about it<br><b>File Organization</b>:<br> * Basic sourcecode organization, module(->submodule)->side<br> * Module directories hold directives<br><b>Code Modularization</b>:<br> * Approach to AngularJS modules, Only one module definition per file<br> * Approach to AngularJS modules, Don’t alter a module other than where it is defined<br><b>Model</b>:<br> * Object-relational mapping<br> * Server-side validation, server-side example<br> * Client side validation, using Angular 1.3<br><b>View</b>:<br> * Approach to AngularJS views, Directives start with "data-"<br> * Approach to data readiness, Use ng-init<br><b>Control</b>:<br> * Approach to frontend routing or state changing, URLs start with '#!'<br> * Approach to frontend routing or state changing, Use query parameters to store route state<br><b>Support for things</b>:<br> * Languages, LESS<br> * Languages, SASS<br><b>Syntax, language and coding</b>:<br> * JavaScript 5 best practices, Don't use "new"<br><b>Testing</b>:<br> * Testing, using Mocha<br> * End-to-end tests<br> * End-to-end tests, using Protractor<br> * Continuous integration (CI), using Travis<br><b>Development and debugging</b>:<br> * Command line interface (CLI), using Yeoman<br><b>Build</b>:<br> * Build configurations file(s)<br> * Deployment automation, using Azure<br> * Deployment automation, using Digital Ocean, screencast of it<br> * Deployment automation, using Heroku, screencast of it<br><b>Code Generation</b>:<br> * Input application profile<br> * Quick install?<br> * Options for making subcomponents<br> * config generator<br> * controller (client side) generator<br> * directive generator<br> * filter generator<br> * route (client side) generator<br> * service (client side) generator<br> * test - client side<br> * view or view partial generator<br> * controller (server side) generator<br> * model (server side) generator<br> * route (server side) generator<br> * test (server side) generator<br><b>Implemented Functionality</b>:<br> * Account Management, Forgotten Password with Resetting<br> * Chat<br> * CSV processing<br> * E-mail sending system<br> * E-mail sending system, using Nodemailer<br> * E-mail sending system, using its own e-mail implementation<br> * Menus system, state-based<br> * Paypal integration<br> * Responsive design<br> * Social connections management page<br><b>Performance</b>:<br> * Creates a favicon<br><b>Security</b>:<br> * Safe from IP Spoofing<br> * Authorization, Access Contol List (ACL)<br> * Authentication, Cookie<br> * Websocket and RESTful http share security policies<br><br><br></td><td valign="top" width="33%"><br><br><h1>MEAN.io. provides these benefits that MeanJS.org. doesn't</h1><br><br><b>Quality</b>:<br> * Sponsoring company<br><b>Help</b>:<br> * Docs with flatdoc<br><b>Code Modularization</b>:<br> * Share code between projects<br> * Module manager<br><b>View</b>:<br> * Approach to data readiness, Use state.resolve()<br><b>Control</b>:<br> * Approach to frontend code loading, Use AMD with Require.js<br> * Approach to frontend code loading, using wiredep<br> * Approach to error handling, Server-side logging<br><b>Client/Server Communication</b>:<br> * Centralized event handling<br> * Approach to XHR calls, using $http and $q<br><b>Syntax, language and coding</b>:<br> * JavaScript 5 best practices, Wrap code in an IIFE (SEAF, SIAF)<br><b>Development and debugging</b>:<br> * API introspection report and testing interface, using Swagger<br> * Command line interface (CLI), using Independent command line interface<br><b>Build</b>:<br> * Development build, add IIFEs (SEAF, SIAF) to executable copies of code<br> * Deployment automation<br> * Deployment automation, using Heroku<br><b>Code Generation</b>:<br> * Scaffolding undo (mean package -d <name>)<br> * FEATURE (a.k.a. module, entity) generator, Menu items added for new features<br><b>Implemented Functionality</b>:<br> * Admin page for users and roles<br> * Content Management System (Use special data-bound directives in your templates.<br>Switch to edit mode and you can edit the values right where you see them)<br> * File Upload<br> * i18n, localization<br> * Menus system, submenus<br> * Search<br> * Search, actually works with backend API<br> * Search, using Elastic Search<br> * Styles, using Bootstrap, using UI Bootstrap AngularJS directives<br> * Text (WYSIWYG) Editor<br> * Text (WYSIWYG) Editor, using medium-editor<br><b>Performance</b>:<br> * Instrumentation, server-side<br><b>Security</b>:<br> * Serverside authenticated route restriction<br> * Authentication, using Oauth, Link multiple Oauth strategies to one account<br> * Authentication, JSON Web Token (JWT)<br><br><br></td><td valign="top" width="33%"><br><br><h1>MEAN.io. and MeanJS.org. both provide these benefits</h1><br><br><b>Quality</b>:<br> * Version Control, using git<br><b>Platforms</b>:<br> * Client-side JS Framework, using AngularJS<br> * Frontend Server/ Framework, using Node.JS<br> * Frontend Server/ Framework, using Node.JS, using Express<br> * API Server/ Framework, using NodeJS<br> * API Server/ Framework, using NodeJS, using Express<br><b>Help</b>:<br> * Dedicated/searchable user group for questions<br> * Dedicated/searchable user group for questions, using Google Groups<br> * Dedicated/searchable user group for questions, using Facebook<br> * Dedicated/searchable user group for questions, response time mostly under a day<br> * Example application<br> * Tutorial screencast in English<br> * Tutorial screencast in English, using Youtube<br> * Dedicated chatroom<br><b>File Organization</b>:<br> * Basic sourcecode organization, module(->submodule)->side, with type subfolders<br> * Module directories hold controllers<br> * Module directories hold services<br> * Module directories hold templates<br> * Module directories hold unit tests<br> * Separate route configuration files for each module<br><b>Code Modularization</b>:<br> * Modularized Functionality<br> * Approach to AngularJS modules, No global 'app' module variable<br> * Approach to AngularJS modules, No global 'app' module variable without an IIFE<br><b>Model</b>:<br> * Setup of persistent storage<br> * Setup of persistent storage, using NoSQL db<br> * Setup of persistent storage, using NoSQL db, using MongoDB<br><b>View</b>:<br> * No XHR calls in controllers<br> * Templates, using Angular directives<br> * Approach to data readiness, prevents Flash of Unstyled/compiled Content (FOUC)<br><b>Control</b>:<br> * Approach to frontend routing or state changing, example of it<br> * Approach to frontend routing or state changing, State-based routing<br> * Approach to frontend routing or state changing, State-based routing, using ui-router<br> * Approach to frontend routing or state changing, HTML5 Mode<br> * Approach to frontend code loading, using angular.bootstrap()<br><b>Client/Server Communication</b>:<br> * Serve status codes only as responses<br> * Accept nested, JSON parameters<br> * Add timer header to requests<br> * Support for signed and encrypted cookies<br> * Serve URLs based on the route definitions<br> * Can serve headers only<br> * Approach to XHR calls, using JSON<br> * Approach to XHR calls, using $resource (angular-resource)<br><b>Support for things</b>:<br> * Languages, JavaScript (server side)<br> * Languages, Swig<br><b>Syntax, language and coding</b>:<br> * JavaScript 5 best practices, Use 'use strict'<br><b>Tool Configuration/customization</b>:<br> * Separate runtime configuration profiles<br><b>Testing</b>:<br> * Testing, using Jasmine<br> * Testing, using Karma<br> * Client-side unit tests<br> * Continuous integration (CI)<br> * Automated device testing, using Live Reload<br> * Server-side integration & unit tests<br> * Server-side integration & unit tests, using Mocha<br><b>Development and debugging</b>:<br> * Command line interface (CLI)<br><b>Build</b>:<br> * Build-time Dependency Management, using npm<br> * Build-time Dependency Management, using bower<br> * Build tool / Task runner, using Grunt<br> * Build tool / Task runner, using gulp<br> * Development build, script<br> * Development build, reload build script file upon change<br> * Development build, copy assets to build or dist or target folder<br> * Development build, html page processing<br> * Development build, html page processing, inject references by searching directories<br> * Development build, html page processing, inject references by searching directories, injects js references<br> * Development build, html page processing, inject references by searching directories, injects css references<br> * Development build, LESS/SASS/etc files are linted, compiled<br> * Development build, JavaScript style checking<br> * Development build, JavaScript style checking, using jshint or jslint<br> * Development build, run unit tests<br> * Production build, script<br> * Production build, concatenation (aggregation, globbing, bundling) (If you add debug:true to your config/env/development.js the will not be <br>uglified)<br> * Production build, minification<br> * Production build, safe pre-minification, using ng-annotate<br> * Production build, uglification<br> * Production build, make static pages for SEO<br><b>Code Generation</b>:<br> * FEATURE (a.k.a. module, entity) generator (README.md<br>feature css<br>routes<br>controller<br>view<br>additional menu item)<br><b>Implemented Functionality</b>:<br> * 404 Page<br> * 500 Page<br> * Account Management<br> * Account Management, register/login/logout<br> * Account Management, is password manager friendly<br> * Front-end CRUD<br> * Full-stack CRUD<br> * Full-stack CRUD, with Read<br> * Full-stack CRUD, with Create, Update and Delete<br> * Google Analytics<br> * Menus system<br> * Realtime data sync<br> * Realtime data sync, using socket.io<br> * Styles, using Bootstrap<br><b>Performance</b>:<br> * Javascript performance thing<br> * Javascript performance thing, using lodash<br> * One event-loop thread handles all requests<br> * Configurable response caching (Express plugin<br><b>https</b>://www.npmjs.org/package/apicache)<br> * Clustered HTTP sessions<br><b>Security</b>:<br> * JavaScript obfuscation<br> * https<br> * Authentication, using Oauth<br> * Authentication, Basic (With Passport or others)<br> * Authentication, Digest (With Passport or others)<br> * Authentication, Token (With Passport or others)<br></td></tr></tbody></table>
我很惊讶,没有人提到Yeoman生成器angular-fullstack。它是Yeoman社区排名第一的发电机,目前发电机页面上有1490颗星,而Mean.js的是81颗星(考虑到新的MEANJS是多么,这是不公平的比较)。在撰写本文时,它似乎正在积极维护中,并处于2.05版中。与MEANJS不同,它不使用Swig做模板。可以安装内置护照。