To develop and test mobile, make sure Xcode and Android Studio are installed.
# install dependencies
$ npm i
# serve with hot relaod at localhost:8000
$ ionic serve
# build for production and lauch server
$ ionic build
$ ionic start
# generate static project
$ ionic generate
# generate iOS and Android
$ ionic cap add ios
$ ionic cap add android
$ ionic cap sync
# build iOS and Android
$ ionic cap build ios
$ ionic cap build android
For detailed explanation on how things work, read the documentation