官术网_书友最值得收藏!

Setting up the development environment

Installing and running Meteor is extremely easy.

For Linux and iOS, all you need is the terminal and cURL. cURL is basically a command-line tool that we can use to move data with URL syntax, such as a GET, POST, and more, all directly from the terminal.

For Windows users, Meteor comes with an installer. You can download it from. All the commands in the book are executed in a Linux terminal; just skip the sudo command and execute the commands as administrator if you are on Windows.

If you don't have cURL installed, open your terminal and install it with the following commands:

  1. Run update as a superuser:
>> sudo apt-get update
  1. Install cURL:
>> sudo apt-get install curl
  1. Verify the installation:
 >> curl --version
  1. Once you have cURL installed, installing Meteor is easy as it's a one line command:
>> curl https://install.meteor.com/ | sh

This will download the latest version of Meteor, and it will install it globally on your machine. Node.js, NPM, MongoDB, and all other default packages will be inside the .meteor directory.

The final installation looks like this:

Meteor 1.4.4.2 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
This may prompt for your password.

In Chapter 9, Build Internet of Things Platform, we will build Node.js apps connecting to a Meteor app. If you don't have Node.js and MongoDB and you want to run them outside Meteor, here's a list of commands and installing scripts that you might find useful:

The following are the Meteor scripts:

主站蜘蛛池模板: 扎兰屯市| 土默特右旗| 黄浦区| 宜兰县| 霍城县| 紫阳县| 龙陵县| 锡林浩特市| 仙居县| 佳木斯市| 宣武区| 伊吾县| 昂仁县| 田林县| 长宁区| 嘉禾县| 拜泉县| 柯坪县| 灌云县| 彰化县| 扎鲁特旗| 淳化县| 东乡族自治县| 灌阳县| 宜兰县| 扎兰屯市| 浙江省| 沭阳县| 克什克腾旗| 德江县| 孟连| 河北区| 泸水县| 鄂温| 平山县| 鄂尔多斯市| 固始县| 上蔡县| 姚安县| 交城县| 赤壁市|