Example of an Ionic application using the LiveOak server.
-
Install Ionic and its prerequisites.
-
Edit liveoak-example-ionic application files index.html and services.js to use your current IP address.
-
Add a collection for newly created application (Manual step currently required). Please note, that names are case-sensitive and following names are all lowercase:
- Login to LiveOak Console
- Create new (basic type) application called "ionic"
- Create new collection called "quiz" in its storage
- To pre-populate data, import preferred (japanese hiragana or portuguese) lesson from the "lessons" folder. The import option is located in the dropdown menu on the right side of (yet still empty) data table (Next to the "Add column" and "Add row" buttons). Don't forget to click save once you imported the json file.
If you're not familiar with the ionic framework, please go through its getting started or documentation. You need to add relevant platforms and/or install emulators. Everything you need to know is in the ionic documentation.
- Start your application the same way you would start any ionic application, i.e. after adding android platform and connecting your smart-phone through USB:
$ ionic run android
This is an example of LiveOak based app running on Ionic platform.
This application is an example of so-called "drill" applications used for studying foreign vocabulary. It is inspired by the Langdrill application from Linux systems.
To start learning the vocabulary, click on the "Start Quiz" button. The question (word to be translated) is printed on the top of the screen. The goal is to select the correct one from all the possible options. Each question is repeated until you correctly answer it for three times. Once you succeed to answer each question correctly three times in a row, this question won't be repeated again.
To stop the quiz, click the "Stop Quiz" button.
Page used for listing the vocabulary.
The settings page has two options:
- Number of choices - number of possible answers to a question.
- Left to Right - Whether the "left" or "right" column is used as a question.