Meteor是什么

Meteor是一个基于JavaScript的全栈开发平台,适用于开发现代化的web站点和移动应用。Meteor包含有一组工具用于开发面向客户端连接的响应式应用程序,其包括:一个生成工具,一组基于nodejs的包和统一的JS社区支持。

  • one language,Meteor可使用JavaScript完成服务器端,浏览器端,移动设备端的开发;
  • data on the wire, Meteor的服务器端不直接提供HTML代码,而是发送必要的数据,由客户端自己渲染出页面;
  • embraces the ecosystem,Meteor拥有一个积极友好的JavaScript社区支持;
  • full stack reactivity, 透过Meteor,开发者只需花费极小的开发成本, 便可实现UI部分无缝的响应应用的真实状态。

快速开始

Meteor目前支持 OS X, Windows, and Linux.

Windows平台? 从这里下载Meteor官方的安装包.

OS X 或者 Linux平台? 通过你的终端安装最新的Meteor官方发行包:

curl https://install.meteor.com/ | sh

Windows安装包目前支持 Windows 7, Windows 8.1, Windows Server 2008, 和 Windows Server 2012。 命令行安装目前支持 Mac OS X 10.7 (Lion)及以上版本,Linux的x86和x86_64架构。

安装好Meteor后,便可以创建的一个项目了:

meteor create myapp

本地运行:

cd myapp
meteor npm install
meteor
# Meteor server running on: http://localhost:3000/

Meteor自身绑定了npm包管理工具,所以你可以通过meteor npm来使用npm,即便你本地并没有安装npm,当然,你同样也可以通过本地全局的npm工具来管理你的包。

Meteor的相关资源

  1. Meteor入门的官方指南
  2. Stack Overflow 是最好的地方来提问或者回答技术性的问题。确保使用Meteor标签来提问
  3. 你可以在Meteor官方论坛上发布你的项目,获取帮助,聊聊社区,再或者讨论下核心功能的变化
  4. Meteor官方文档是查看Meteor核心API最好的地方
  5. [Atmosphere](https://atmospherejs.com是专门用于存放Meteor社区第三方包的仓库
  6. Meteor官网下的projects栏目有介绍一些用于构成Meteor平台的子项目

Meteor指南是什么?

This is a set of articles outlining opinions on best-practice application development using the Meteor platform. Our aim is to cover patterns that are common to the development of all modern web and mobile applications, so many concepts documented here are not necessarily Meteor specific and could be applied to any application built with a focus on modern, interactive user interfaces.

Nothing in the Meteor guide is required to build a Meteor application---you can certainly use the platform in ways that contradict the principles and patterns of the guide. However, the guide is an attempt to document best practices and community conventions, so we hope that the majority of the Meteor community will benefit from adopting the practices documented here.

The APIs of the Meteor platform are available at the docs site, and you can browse community packages on atmosphere.

Target audience

The guide is targeted towards intermediate developers that have some familiarity with JavaScript, the Meteor platform, and web development in general. If you are just getting started with Meteor, we recommend starting with the official tutorial.

Example app

Many articles reference the Todos example application. This code is being actively developed alongside the guide. You can see the latest source code for the app, and file issues or make suggestions via pull request at its GitHub repository.

Guide development

Contributing

Ongoing Meteor Guide development takes place in the open on GitHub. We encourage pull requests and issues to discuss problems with and changes that could be made to the content. We hope that keeping our process open and honest will make it clear what we plan to include in the guide and what changes will be coming in future Meteor versions.

Goals of the project

The decisions made and practices outlined in the guide must necessarily be opinionated. Certain best practices will be highlighted and other valid approaches ignored. We aim to reach community consensus around major decisions but there will always be other ways to solve problems when developing your application. We believe it's important to know what the "standard" way to solve a problem is before branching out to other options. If an alternate approach proves itself superior, then it should make its way into a future version of the guide.

An important function of the guide is to shape future development in the Meteor platform. By documenting best practices, the guide shines a spotlight on areas of the platform that could be better, easier, or more performant, and thus will be used to focus a lot of future platform choices.

Similarly, gaps in the platform highlighted by the guide can often be plugged by community packages; we hope that if you see an opportunity to improve the Meteor workflow by writing a package, that you take it! If you're not sure how best to design or architect your package, reach out on the forums and start a discussion.

results matching ""

    No results matching ""