Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Latest commit

 

History

History
89 lines (71 loc) · 1.74 KB

README.md

File metadata and controls

89 lines (71 loc) · 1.74 KB

Re Life - @nonodev96

npm version

Install package

npm install
npm install -g cordova ionic 

Install platforms and plugins

ionic state reset
ionic state restore

cordova telemetry on

Run server

ionic serve 
ionic serve --lab
ionic serve -lc -s -p 80

Run app in android device

ionic run android --device
ionic run android --emulator

Plugins

ionic plugin add cordova-plugin-camera
...

npm install --save @ionic-native/geolocation
...

Create page

ionic g page myPage

pages
 | - my-page
   |
   | - √ Create app/pages/my-page/my-page.html
   | - √ Create app/pages/my-page/my-page.ts
   | - √ Create app/pages/my-page/my-page.scss

Create a service

ionic g provider authService

providers
 | 
 | - √ Create app/providers/my-data/auth-service.ts

PATH

Obtener solo las herramientas de línea de comando

LINUX SDK Platform-Tools for Linux

export HOME="/home/$(whoami)"
export ANDROID_HOME="$HOME/Android/Sdk"

OS X SDK Platform-Tools for Mac

sudo nano /etc/paths

/Users/andmud/Library/Android/sdk/platform-tools
/Users/andmud/Library/Android/sdk/tools

WINDOWS SDK Platform-Tools for Windows

ANDROID_HOME = %USERPROFILE%\AppData\Local\Android\sdk\

PATH = %USERPROFILE%\AppData\Local\Android\sdk\platform-tools
PATH = %USERPROFILE%\AppData\Local\Android\sdk\tools