A simple CRUD native progressive web app developed using Ionic v4, Cordova and Angular 5
To create a project, use command
$ ionic start or
$ ionic start myApp sidemenu --type=angular
Use this command to globally set ionic to use yarn
instead of npm
$ ionic config set -g yarn true
For a local project go in the project directory and run
$ ionic config set yarn true
The majority of Ionic app development can be spent right in the browser using the ionic serve command
$ cd myApp or cd .\myApp\
$ ionic serve
Need to run this command if you require ionic-lab
$ yarn add @ionic/lab or
$ npm install @ionic/lab --save
For using the ionic lab use command
$ ionic serve -lcs
To generate pages
, components
, directives
etc. use command
$ ionic generate or
$ ionic g or
$ ionic generate page "pages/User Detail"
To run on android
$ ionic cordova platform add android
$ ionic cordova prepare android
Set the Package ID, open the config.xml
file and modify the id
attribute of the root element, <widget>
.