﻿{"id":3220,"date":"2018-05-02T18:00:33","date_gmt":"2018-05-02T17:00:33","guid":{"rendered":"https:\/\/dahoo.fr\/wordpress\/?p=3220"},"modified":"2018-05-03T08:02:50","modified_gmt":"2018-05-03T07:02:50","slug":"cordova-initialisation","status":"publish","type":"post","link":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/","title":{"rendered":"Cordova : initialisation"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f44164a431a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f44164a431a\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#Installation_de_corvdova\" >Installation de corvdova<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#Creation_dun_projet\" >Cr\u00e9ation d&rsquo;un projet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#Ajout_dune_plateforme_au_projet\" >Ajout d&rsquo;une plateforme au projet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#Lancer_votre_projet\" >Lancer votre projet<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Installation_de_corvdova\"><\/span>Installation de corvdova<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Les lignes de commande Cordova s&rsquo;ex\u00e9cute sur Node.js et est disponible sur NPM. Suivez les guides sp\u00e9cifiques \u00e0 la plate-forme pour installer des d\u00e9pendances de plates-formes suppl\u00e9mentaires. Ouvrez une invite de commande ou Terminal, et tapez npm install -g cordova.<\/p>\n<blockquote>\n<div id=\"copy-npm-install-text\" class=\"copy-text\"><strong>npm install -g cordova<\/strong><\/div>\n<\/blockquote>\n<div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Creation_dun_projet\"><\/span>Cr\u00e9ation d&rsquo;un projet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Pour cr\u00e9e un projet vide, utiliser la ligne de commande. Remplacer MyApp par le nom de votre application.<\/p>\n<blockquote>\n<div id=\"copy-cordova-create-text\" class=\"copy-text\"><strong>cordova create MyApp<\/strong><\/div>\n<\/blockquote>\n<div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Ajout_dune_plateforme_au_projet\"><\/span>Ajout d&rsquo;une plateforme au projet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div>\n<p>Apres avoir cr\u00e9\u00e9 votre projet cordova, on vas ajouter les platformes que l&rsquo;on souhaite sur le projet. Plateforme disponible (liste non exhaustive browser =&gt; pour navigateur, android =&gt; pour android, ios =&gt; pour iphone. \u00a0La ligne de commande \u00ab\u00a0cd MyApp cordova platform add [PLATEFORME]\u00a0\u00bb. On ce place dabord dans le dossier (cd MyApp)<\/p>\n<blockquote>\n<div><strong>cordova platform add browser<\/strong><\/div>\n<div><\/div>\n<\/blockquote>\n<h2><span class=\"ez-toc-section\" id=\"Lancer_votre_projet\"><\/span>Lancer votre projet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Pour lancer votre projet, remplacer le [plateforme] par votre plateforme cible. La ligne de commande \u00ab\u00a0cordova run -device [PLATEFORME]\u00a0\u00bb<\/p>\n<blockquote><p><strong>cordova run -device browser<\/strong><\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Installation de corvdova Les lignes de commande Cordova s&rsquo;ex\u00e9cute sur Node.js et est disponible sur NPM. Suivez les guides sp\u00e9cifiques \u00e0 la plate-forme pour installer des d\u00e9pendances de plates-formes suppl\u00e9mentaires. Ouvrez une invite de commande&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":3383,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[6,55,56],"tags":[438],"class_list":["post-3220","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-android","category-ios","category-windows-phone","tag-cordova","post_format-post-format-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cordova : initialisation - D@hoo<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cordova : initialisation - D@hoo\" \/>\n<meta property=\"og:description\" content=\"Installation de corvdova Les lignes de commande Cordova s&rsquo;ex\u00e9cute sur Node.js et est disponible sur NPM. Suivez les guides sp\u00e9cifiques \u00e0 la plate-forme pour installer des d\u00e9pendances de plates-formes suppl\u00e9mentaires. Ouvrez une invite de commande&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\" \/>\n<meta property=\"og:site_name\" content=\"D@hoo\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-02T17:00:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-03T07:02:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1120\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fabacks\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabacks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\"},\"author\":{\"name\":\"Fabacks\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2\"},\"headline\":\"Cordova : initialisation\",\"datePublished\":\"2018-05-02T17:00:33+00:00\",\"dateModified\":\"2018-05-03T07:02:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\"},\"wordCount\":171,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png\",\"keywords\":[\"cordova\"],\"articleSection\":[\"Android\",\"Ios\",\"Windows phone\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\",\"url\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\",\"name\":\"Cordova : initialisation - D@hoo\",\"isPartOf\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png\",\"datePublished\":\"2018-05-02T17:00:33+00:00\",\"dateModified\":\"2018-05-03T07:02:50+00:00\",\"author\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2\"},\"breadcrumb\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage\",\"url\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png\",\"contentUrl\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png\",\"width\":1120,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/dahoo.fr\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cordova : initialisation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#website\",\"url\":\"https:\/\/dahoo.fr\/wordpress\/\",\"name\":\"D@hoo\",\"description\":\"Dahoo, la taverne du geek\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dahoo.fr\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2\",\"name\":\"Fabacks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g\",\"caption\":\"Fabacks\"},\"description\":\"Fabacks, fondateur du projet Dahoo proposant des news, des tutos, des tests tout cela gratuitement. Un bidouilleur et fan d'informatique en tout genre qui vous fera partager ses exp\u00e9riences.\",\"sameAs\":[\"http:\/\/dahoo.fr\"],\"url\":\"https:\/\/dahoo.fr\/wordpress\/author\/fabien\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cordova : initialisation - D@hoo","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/","og_locale":"fr_FR","og_type":"article","og_title":"Cordova : initialisation - D@hoo","og_description":"Installation de corvdova Les lignes de commande Cordova s&rsquo;ex\u00e9cute sur Node.js et est disponible sur NPM. Suivez les guides sp\u00e9cifiques \u00e0 la plate-forme pour installer des d\u00e9pendances de plates-formes suppl\u00e9mentaires. Ouvrez une invite de commande&#46;&#46;&#46;","og_url":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/","og_site_name":"D@hoo","article_published_time":"2018-05-02T17:00:33+00:00","article_modified_time":"2018-05-03T07:02:50+00:00","og_image":[{"width":1120,"height":500,"url":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png","type":"image\/png"}],"author":"Fabacks","twitter_misc":{"\u00c9crit par":"Fabacks","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#article","isPartOf":{"@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/"},"author":{"name":"Fabacks","@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2"},"headline":"Cordova : initialisation","datePublished":"2018-05-02T17:00:33+00:00","dateModified":"2018-05-03T07:02:50+00:00","mainEntityOfPage":{"@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/"},"wordCount":171,"commentCount":0,"image":{"@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage"},"thumbnailUrl":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png","keywords":["cordova"],"articleSection":["Android","Ios","Windows phone"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/","url":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/","name":"Cordova : initialisation - D@hoo","isPartOf":{"@id":"https:\/\/dahoo.fr\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage"},"image":{"@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage"},"thumbnailUrl":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png","datePublished":"2018-05-02T17:00:33+00:00","dateModified":"2018-05-03T07:02:50+00:00","author":{"@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2"},"breadcrumb":{"@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#primaryimage","url":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png","contentUrl":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png","width":1120,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/dahoo.fr\/wordpress\/cordova-initialisation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/dahoo.fr\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Cordova : initialisation"}]},{"@type":"WebSite","@id":"https:\/\/dahoo.fr\/wordpress\/#website","url":"https:\/\/dahoo.fr\/wordpress\/","name":"D@hoo","description":"Dahoo, la taverne du geek","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dahoo.fr\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2","name":"Fabacks","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g","caption":"Fabacks"},"description":"Fabacks, fondateur du projet Dahoo proposant des news, des tutos, des tests tout cela gratuitement. Un bidouilleur et fan d'informatique en tout genre qui vous fera partager ses exp\u00e9riences.","sameAs":["http:\/\/dahoo.fr"],"url":"https:\/\/dahoo.fr\/wordpress\/author\/fabien\/"}]}},"jetpack_featured_media_url":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2018\/05\/cordova_logo_normal_dark_large.png","_links":{"self":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/posts\/3220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/comments?post=3220"}],"version-history":[{"count":0,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/posts\/3220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/media\/3383"}],"wp:attachment":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/media?parent=3220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/categories?post=3220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/tags?post=3220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}