Skip to content

Instantly share code, notes, and snippets.

@dferrandizmont
Created December 16, 2018 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dferrandizmont/bb61c75cdde122a8ccbd785050ae6fab to your computer and use it in GitHub Desktop.
Save dferrandizmont/bb61c75cdde122a8ccbd785050ae6fab to your computer and use it in GitHub Desktop.
[Ionic 3 cheatsheet] #ionic

Ionic 3 cheat sheet by Benjamin

Les commandes principales:

  • npm install -g cordova ionic #Installer Ionic
  • $ ionic info #Récupérer toutes les info
  • $ ionic start blank #Créer un projet vierge
  • $ ionic start "myApp" #Multiple choix de création de projet
  • $ ionic generate #Creation divers
  • $ ionic generate component
  • $ ionic generate directive
  • $ ionic generate page
  • $ ionic generate pipe
  • $ ionic generate provider
  • $ ionic generate tabs
  • $ ionic platform add android #Ajout plaforme android
  • $ ionic serve -p "numéroDePort" #Changer le port de sortie du lab
  • $ ionic start myapp --id com.mycompany.myapp #Changer le nom du package dès la creation de son projet

Générer automatiquement icon et splash screen

  1. You will need to create an initial 192x192px icon and a 2208x2208px splash screen
  2. The initial designs should be placed in the resources folder
  3. Run ionic resources to generate the splash screens and icons
  4. You can also generate just the icons with ionic resources -i or just the splash screens with ionic resources -s
  5. ⚠️You must have added the platform in order to generate assets for that platform, i.e. ionic platform add android⚠️

API Google Maps

  • npm install --save @types/googlemaps #Installer GoogleMaps natif
    Générer empreinte de certificat de signature SHA-1
    OSX :
    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
    Windows :
    keytool -list -v -keystore "C:\Users\ (nom_utilisateur_de_votre_ordi).android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment