2021年4月21日 星期三

[hyperapp, app] Installing Ionic

 


Installing Ionic

井民全, Jing, mqjing@gmail.com


Install node manager

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash


# open new terminal

nvm install --lts                 # install node, LTS version

nvm alias default lts/*    # setup default node as the installed node


# check

node -v

which npm


Install the Ionic CLI

npm uninstall -g ionic    # uninstall previous install

npm install -g @ionic/cli


Start an App

ionic start myApp tabs


Template available:

  • tabs: A tabs based layout

  • sidemenu: A sidemenu based layout

  • blank: An empty project with a single page




Run the App

cd myApp

ionic serve

Reference

  1. https://ionicframework.com/docs/intro/cli