APACHE-2.0 License
This demo is an app that updates the price difference information of the cryptocurrency market (BTC/USD), this app will get realtime prices data from multiple cryptocurrency trading platforms (exchanges) through their websocket server and then display in a mobile list view for users to compare..
NOTE: Because NativeScript PREVIEW (Playground)
cannot support Websockets so we must either do a cloud build or a local build; Preview
cannot use native "compiled" modules of which NS-Websocket is one of them... In this demo, i used local build on XCode simulator.
Because we must do local build
to make this demo work, so we must install full nativescript system requirements first.
After that, just run this demo on simulator or connected device:
npm install -g nativescript
tns install
npm install
tns run ios
# or
tns run android
tns cli
can't open simulator, we must manual open simulator first and then use tns run
again, for ios:xcrun simctl list
# get udid of the device you want to launch
# Paste this in the terminal
open -a Simulator --args -CurrentDeviceUDID <DeviceUDID>
# run
tns run ios