You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Ahmad Jawid Muhammadi (Jira)" <ji...@apache.org> on 2020/08/22 20:03:00 UTC

[jira] [Created] (FINCN-238) Couchbase integration in Fineract CN Mobile & required changes in Fineract CN

Ahmad Jawid Muhammadi created FINCN-238:
-------------------------------------------

             Summary: Couchbase integration in Fineract CN Mobile & required changes in Fineract CN
                 Key: FINCN-238
                 URL: https://issues.apache.org/jira/browse/FINCN-238
             Project: Fineract Cloud Native
          Issue Type: New Feature
          Components: fineract-cn-api
            Reporter: Ahmad Jawid Muhammadi


*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?*

Couchbase stores all data models as a JSON. Please take a look at the attached screenshot to see how it is done. I added one more +string+ variable named "{color:#00875a}+documentType+{color}" for example:
{code:java}
String documentType = "Group"{code}
or
{code:java}
String documentType = "Customer"{code}
because from the client-side to query and convert the retrieved JSON file to the exact data models (Kotlin data classes) using the Gson library, we need to know the class type of each file. 

*The required change in Fineract CN:*
 *  When integrating *Couchbase* and *Sync Gateway* in Fineract CN, developers need to modify all data classes to add {color:#00875a}documentType {color}{color:#172b4d}variable. {color}
 * For install and configuring Coucbhase in local machine follow [this|[https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad8]] instruction.
 * Click [here|[https://github.com/apache/fineract-cn-mobile/pull/111]] to review the pull request of CouchbaseLite implementation in [Fineract CN Mobile|[https://github.com/apache/fineract-cn-mobile]]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)