Ionic 5 Development

Build new an Ionic 5 application

Posted by

Manual Installation of ionic

If you want to install and start an Ionic app manually from the command line? Please follow the below steps

Install ionic

$ npm install -g @ionic/cli

This is a global level dependency, you can install it via your terminal in Mac, and via command prompt in Windows.

Start to install

Now you can start to install ionic app in your root folder

$ ionic start myApp tabs

There are a total of 3 options provided by ionic 5

1) ionic start myApp blank
2) ionic start myApp tabs
3) ionic start myApp sidemenu

where, myApp is application name of your ionic app

ionic serve – It’s run your ionic app in web browser only.

Add android and iOS platform

$ ionic cordova platform add android
$ ionic cordova platform add iOS

It must require to install android SDK in your Mac and Windows machine

Auto-generate icon and splash screen

$ ionic cordova resources ios
$ ionic cordova resources android

You can generate icons and splash screens for your Android and iOS platforms. The source image for icons should be at least 1024×1024px and placed at resources/icon.png. The source image for splash screens should ideally be at least 2732×2732px size and located at it will be located at resources/splash.png.

How to run

$ cd myApps
$ ionic serve
$ ionic cordova run android
$ ionic cordova run ios

So, that it . Its way to create an ionic app and run to the machine.

Leave a Reply

Your email address will not be published. Required fields are marked *