PhoneGap Software Installation

Source: Internet
Author: User

Gossip precedes. The PhoneGap I understand was originally developed by engineers at Nitobi software company. After being acquired by Adobe, the PhoneGap core code was donated to Apache, but PhoneGap's name was reserved by Adobe. Apache eventually named the Project  apache cordova (Cordova is the name of the street where the developer is located). Cordova and PhoneGap are currently in sync with the core code, which can be used. PhoneGap is a set of API interfaces for mobile devices that access these interfaces using JavaScript to invoke hardware system resources such as cameras and compasses. The following platforms are used for Mac, install using PhoneGap, no permissions installed, automatically add  sudo  use in front. node. JS preinstalled PhoneGap, first installing node. JS (https://nodejs.org), download and install. Terminal use  sudo curl -l https://npmjs.org/install.sh | sh can install NPM.JS,NPM as Manuscript management tool, (RPM, etc.) if the installation package above has this option, you can omit it. To upgrade NPM, you can use the sudo npm update npm -g  command. node -v, npm -v  can view version information. node. js Test, write File Test.js    var http = require (' http ');     http.createserver (function  (req, res)  {    res.writehead (200, {' Content-type ':  ' Text/plain '});     res.end (' hello world\n ');     }). Listen (1337,  "127.0.0.1");     console.log (' Server running at http://127.0.0.1:1337/'); Jump to the directory, run  node test.js  start the service, browser, You can see the effect by entering http://127.0.0.1:1337. Learn from node. JS and continue to record later. Install the PhoneGap with a previously installed NPM installation.  npm install -g phonegapphonegap -v, you can view the current PhoneGap version information.


PhoneGap Software Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.