简体   繁体   English

在我的SPA应用程序中使用Mean.io

[英]Using Mean.io for my SPA application

I have a new project which will consist of two parts...a client - SPA using AngularJS and server side using Nodejs - MongoDB. 我有一个新项目,该项目将包括两个部分:客户端-使用AngularJS的SPA和使用Nodejs的服务器端-MongoDB。 Many articles recommend using Mean.io when developing similar projects, but couldn't find any information on why this is better than simply installing Nodejs, Mongo, AngularJS and using them. 许多文章建议在开发类似项目时使用Mean.io,但找不到比为什么简单地安装Nodejs,Mongo,AngularJS并使用它们更好的信息。

So can someone please tell me the benefits of using Mean.io over installing Node, Mongo, Angular and Express and using them? 所以有人可以告诉我使用Mean.io优于安装Node,Mongo,Angular和Express并使用它们的好处吗? OR in other words why it is better to use Mean.io rather than downloading and installing each package/ framework individually? 或者换句话说,为什么最好使用Mean.io而不是单独下载和安装每个软件包/框架? Thanks 谢谢

well, you are going to save a lot of time with plain simple boilerplate code, in my case I've been using meanjs which helps you with a lot of basic functions like: 好吧,您将使用简单的简单样板代码节省大量时间,就我而言,我一直在使用meanjs ,它可以帮助您实现许多基本功能,例如:

  • login using passport, local strategies, social network strategies (g+, facebook, twitter) 使用护照登录 ,本地策略,社交网络策略(g +,facebook,twitter)
  • Twitter bootstrap Twitter引导
  • Consistent folder structure 一致的文件夹结构
  • Consistent file naming 一致的文件命名
  • Environment configuration for dependencies and custom "settings" (dev, test, production) 依赖项和自定义“设置”(开发,测试,生产)的环境配置
  • pre configured routes with controllers 与控制器预先配置的路由

software development workflow: 软件开发工作流程:

  • grunt (preconfigures task like jshint, build, test) grunt(预先配置诸如jshint,build,test之类的任务)
  • yeoman generator (save you a lot of time) 约曼发电机(节省很多时间)
  • nodemon (for reloading pages everytime you save a page) nodemon(用于在每次保存页面时重新加载页面)
  • testing frameworks for client and server side 客户端和服务器端的测试框架

I can list a lot of more but the point is to mention the benefits are far beyond just by putting all 4 main pieces of software together. 我可以列出更多的内容,但要指出的是,仅将所有四个主要软件组合在一起所带来的好处就远远超过了。

for more info you can look at the overview 有关更多信息,请查看概述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM