Skip to main content

Ionic 5 setup

· One min read
  1. Install Ionic - Open the command prompt and run npm install -g @ionic/cli

  2. Update the angular cli npm install -g @angular/cli@latest

  3. Create an app ionic start nagTabs tabs syntax: ionic start app types are a. tabs: A tabs based layout b. sidemenu: A sidemenu based layout c. blank: An empty project with a single page

  1. Create framework features syntax: ionic generate [options]

type of framework features:

page componet service module class directive gaurd

name: The name/path of the feature being generated

5. Run the App on browser cd myApp ionic serve

Run the app on Android/iOS/Windows

6. ionic cordova build Build (prepare + compile) an Ionic project for a given platform syntax: ionic cordova build [options] eg: ionic cordova build android

7. ionic cordova run Run an Ionic project on a connected device syntax: ionic cordova run [] [options] eg: ionic cordova run android