Transform simplesensor with ionic.io framework
To set up ionic's environment correctly : loopback-users-mobile.
You just need to run $ npm install -g ionic
to add ionic framework.
Once requirements are met, clone this repo by running :
$ git clone https://github.com/BenLeroy/Ionic-sensor.git
Or download the project's Zip
Then run :
$ npm install
$ bower install
To make the application point to the right server address, you'll need to change app.js :
- at line 24 (LoopBackResourceProvider.setUrlBase ('[yourServerAdress]/api'))
- and line 109 (socket.io connector).
Use your favorite emulator to run the project.
To build the project with ionic use $ ionic build [platform]
from project's root.
For Android, use $ ionic build android
; the built APK will be found in [dir]/platforms/[android]/build/outputs/apk/android-debug.apk.
If you want to have a working preview, use $ ionic serve
, it should open your default browser and display a working app, else navigate to http://localhost:8100.