Uploaded image for project: 'Fineract Cloud Native'
  1. Fineract Cloud Native
  2. FINCN-238

Couchbase integration in Fineract CN Mobile & required changes in Fineract CN

    XMLWordPrintableJSON

    Details

      Description

      What is Couchbase?

      Couchbase Mobile is the complete NoSQL database solution for all data storage, access, sync, and security across the entire application stack. It includes an Embedded database, Rest API, and Synchronization. 

      How it is implemented in FCN Mobile?

      I added a String variable named "documentType" in two Data Classes like:

      String documentType = "Group"

      and

      String documentType = "Customer"

      As I described above Couchbase database stores all data models as a JSON so to query data from the client-side and convert the retrieved JSON files to the data models (Kotlin data classes), we need to know the exact class type of each file.   Please take a look at the attached screenshot to see how data are being stored in Coucbase Server locally

      The required change in Fineract CN:

      • In order to sync data between the Mobile app and Fineract Server, developers need to add a variable named documentType in all data classes when integrating Couchbase and Sync Gateway in Fineract CN. 
      • For install and configuring Coucbhase in local machines follow this instruction.
      • Click here to review the pull request of CouchbaseLite implementation in Fineract CN Mobile

       

        Attachments

        1. rsz_screenshot_from_2020-08-23_01-52-41.png
          126 kB
          Ahmad Jawid Muhammadi
        2. rsz_screenshot_from_2020-08-22_22-12-56.png
          164 kB
          Ahmad Jawid Muhammadi

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jawidMuhammadi Ahmad Jawid Muhammadi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: