{"id":2974,"date":"2014-06-02T21:00:15","date_gmt":"2014-06-02T21:00:15","guid":{"rendered":"http:\/\/webninjataylor.com\/library\/?p=2974"},"modified":"2014-06-24T20:59:32","modified_gmt":"2014-06-24T20:59:32","slug":"phonegap-in-60-seconds","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/phonegap-in-60-seconds\/","title":{"rendered":"PhoneGap in 60 Seconds"},"content":{"rendered":"<ol>\n<li><a href=\"http:\/\/nodejs.org\/\" target=\"_blank\">Install Node.js<\/a><\/li>\n<li>Open Terminal and install PhoneGap followed by Cordova&#8230;\n<pre>$ sudo npm install -g phonegap\r\n$\u00a0sudo npm install -g cordova<\/pre>\n<\/li>\n<li>Install SDK&#8217;s for targeted environments<\/li>\n<\/ol>\n<h2>Create a New Project<\/h2>\n<p>In Terminal, navigate to where you want to create the new project directory, and then run Cordova&#8217;s create command, passing in 1) The directory name for the project, 2) a reverse domain-style identifier, and 3) the app&#8217;s display title.<\/p>\n<pre>$ cordova create PROJECT com.example.PROJECT TaylorsWorld<\/pre>\n<h2>Add Platforms, Build, and Test<\/h2>\n<p>See the PhoneGap documentation for the full\u00a0<a href=\"http:\/\/docs.phonegap.com\/en\/edge\/guide_cli_index.md.html#The%20Command-Line%20Interface\" target=\"_blank\">command line interface<\/a>, but the basics go like this&#8230;<\/p>\n<pre>$ cd PROJECT\r\n$ cordova platform add ios\r\n$ cordova build\r\n$ cordova emulate ios\r\n<\/pre>\n<p>Note: I&#8217;m having a bug in my Xcode&#8217;s iOS Simulator where I&#8217;m having to &#8220;Reset Content and Settings&#8230;&#8221; (seems to be a common bug and nothing to do with PhoneGap)<\/p>\n<h2>Add Plugins<\/h2>\n<pre>$ cordova plugin list\r\n$ cordova plugin add https:\/\/git-wip-us.apache.org\/repos\/asf\/cordova-plugin-device.git\r\n$ cordova plugin remove org.apache.cordova.device (plugins are on a per-project basis so remove any unused ones when ready to deploy)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install Node.js Open Terminal and install PhoneGap followed by Cordova&#8230; $ sudo npm install -g phonegap $\u00a0sudo npm install -g cordova Install SDK&#8217;s for targeted environments Create a New Project In Terminal, navigate to where you want to create the new project directory, and then run Cordova&#8217;s create command, passing in 1) The directory name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[145,22],"class_list":["post-2974","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-mobile","tag-terminal"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/2974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=2974"}],"version-history":[{"count":8,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/2974\/revisions"}],"predecessor-version":[{"id":3336,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/2974\/revisions\/3336"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=2974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=2974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=2974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}