Here are the examples of running Wootric on Ionic applications, for non-Single Page Applications (SPA) and SPAs.
Before we begin, ensure that you have Cordova and Ionic installed and have iOS and Android platforms enabled. If you haven't, begin from step 1. If you already have done so, move on to step 2.
Run the following commands to install Cordova and Ionic:
$ sudo npm install -g cordova
$ sudo npm install -g ionic
Next, run the following commands to configure iOS and Android platforms:
$ ionic cordova platform add ios
$ ionic cordova platform add android
Or follow the Ionic installation guide here and skip "Create the project" and "Test it out".
Go to the directory you wish to create your folder (i.e. Desktop). Then, in your terminal, clone this repository using the following command:
$ git clone [email protected]:Wootric/ionic-examples.git
This will create a ionic-examples
folder on your desired directory and download the repository files into the folder.
Before you run the examples, change to your desired directory by running the following commands:
$ cd wootric-ionic
$ cd wootric-ionic-spa
To test on a desktop browser, run the following command:
$ ionic serve
To test on an iOS simulator, run the following commands:
$ ionic cordova build ios
$ ionic cordova emulate ios
Or follow the Ionic testing guide here.
To test the app on Android, follow the Ionic testing guide under "Testing as a native app".