[
https://issues.apache.org/jira/browse/FINCN-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ahmad Jawid Muhammadi updated FINCN-238:
----------------------------------------
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 S+tring+ variable named "{color:#00875a}+documentType+{color}" in two
Data Classes like:
{code:java}
String documentType = "Group"{code}
and
{code:java}
String documentType = "Customer"{code}
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
saved 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 +{color:#00875a}documentType{color}+ in all data
classes when integrating *Couchbase* and *Sync Gateway* in Fineract
CN.{color:#172b4d} {color}
* For install and configuring Coucbhase in local machine follow
[this|[https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad|https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad8]]
[this|[https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad8]]
instruction.
* Click
[here|[https://github.com/apache/fineract-cn-mobile/pull/111[mailto:[email protected]]|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]]
was:
*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]]
> 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
> Priority: Major
> Labels: Couchbase, fineract, gsoc2020
>
> *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 S+tring+ variable named "{color:#00875a}+documentType+{color}" in
> two Data Classes like:
> {code:java}
> String documentType = "Group"{code}
> and
> {code:java}
> String documentType = "Customer"{code}
> 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 saved 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 +{color:#00875a}documentType{color}+
> in all data classes when integrating *Couchbase* and *Sync Gateway* in
> Fineract CN.{color:#172b4d} {color}
> * For install and configuring Coucbhase in local machine follow
> [this|[https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad|https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad8]]
>
> [this|[https://gist.github.com/jawidMuhammadi/af6cd34058cacf20b100d335639b3ad8]]
> instruction.
> * Click
> [here|[https://github.com/apache/fineract-cn-mobile/pull/111[mailto:[email protected]]|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)