- git command install : https://git-scm.com/downloads
- vscode install : https://code.visualstudio.com/download
- download this source : git clone https://github.com/peterkhang/ionic-demo.git
- open source folder with vscode
- vscode terminal setting as git bash : https://murra.tistory.com/36
- nodejs, npm 설치 : https://nodejs.org/en/
- npm command update : $ npm i -g npm (run in vscode terminal)
- yarn install : $ npm i -g yarn : https://classic.yarnpkg.com/en/docs/install/#mac-stable
- ionic install : $ npm i -g @ionic/cli
- angular install : $ npm i -g @angular/cli
- $ yarn (build node_modules dependencies in package.json)
- $ ionic serve (Run to show thid demo on Browser like chrome)
- $ ionic build --prod (build and deploy public web root folder : ./www)
- $ npx add android (create android app project)
- $ npx cap sync (apply ./www & native plugins to android project)
- $ cd androidReal ; chmod 755 copy.sh(only one time) ; ./copy.sh (copy 5. from android to androidReal project)
- AndroidStudio Install : https://developer.android.com/studio?gclid=CjwKCAjwkN6EBhBNEiwADVfyaxeWTdfiBIcRzZ6DutxRH6iriW2vCt33BFg9ENhuA3axvaROgiHqaBoCN04QAvD_BwE&gclsrc=aw.ds
- AndroidStudio SDK previous version install : https://developer.android.com/about/versions/10/setup-sdk?hl=ko (recommendation to install android sdk build-tools version from 30 to 27)
- android phone debug mode enable setting : https://www.samsung.com/in/support/mobile-devices/what-is-usb-debugging-in-samsung-smartphones/
- insert phone to PC's usb
- AndroidStudio open the androidReal project folder
- Build and Run (with debug or release)
- Now you can see this demo app on your android phone
ionic framework : https://ionicframework.com/ peerjs : https://www.npmjs.com/package/peerjs peerjs-server: https://github.com/peers/peerjs-server