Skip to content

thaliproject/ThaliTestApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a simple Thali native test application.

Build instructions

In order to build the application follow the steps:

  1. Clone 2 GIT repos in the same location:
  2. You need to have sinopia configured and running as described in Thali_CordovaPlugin. Custom express-pouchdb (1.0.5-thali) must be available.
  3. Enter the Thali_CordovaPlugin folder and run: ./build.sh
  4. Enter the ThaliTestApp folder and run: ./prepare.sh
  5. Now you can build the cordova app using command: cordova build android --device cordova build ios --device

Run instructions

  1. On first run on Android you will be asked for location permissions - it must be granted if you want to use native mode.
  2. When app starts on two devices select mode (WiFi or Native) on both devices using buttons.
  3. On both devices init Thali - you must use button Init #1 on first device and Init #2 on second device in order to have Thali working (related to ECDH keys used by devices).
  4. Now you can start/stop Thali on both devices using buttons Start and Stop.
  5. Button Add data adds data to local PouchDB. The added document content is: [<ID>] TEST DATA #<SEQ> where is id of device that created this document (corresponding to number used by Init Thali button), is sequential number of document created by gived device. In the LAST CHANGE field you may see the last change reported by PouchDB (TIME RECEIVED shows time when the change was received). This way you may check if the replication is working. Note that also your own changes are logged in LAST CHANGE.
  6. Button Add attachment adds attachment to local PouchDB.
  7. Button Start test may be used to start continuos test (adding data, stopping and starting Thali). Note that device (especially iOS) should not go background as this is not handled by the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.8%
  • CSS 5.9%
  • HTML 5.3%
  • Shell 1.0%