Cloud DB is a device-cloud synergy database product that provides data synergy management capabilities, unified data models, and various data management APIs. In addition to ensuring data availability, reliability, consistency, and security, CloudDB enables seamless data synchronization between the device and cloud, and supports offline application operations, helping developers quickly develop device-cloud and multi-device synergy applications. As a part of the AppGallery Connect solution, Cloud DB builds the Mobile Backend as a Service (MBaaS) capability for the AppGallery Connect platform. In this way, application developers can focus on application services, greatly improving the production efficiency.
- Before using the auth server sdk, your server needs support Python 3.7 or higher.
Before running the auth server sdk, you need to:
- If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification.
- Use your account to sign in to AppGallery Connect, create a project.
- Go to Project settings > Server SDK, click Create under API client, then click Download credential.
- Save the downloaded authentication credential file agc-apiclient-xxx-xxx.json to the specified path. The file will be used during SDK initialization in main.py.
- Install AGC Pyhon Server SDK by following command:
pip install agconnect
- Run the following code in terminal in the demo path, and demo will start.
python main.py
More about details
Agc-clouddb-introduction
Sample code: main.py
If you have questions about how to use AppGallery Connect Demos, try the following options:
- Stack Overflow is the best place for any programming questions. Be sure to tag your
question with
AppGallery
. - Huawei Developer Forum AppGallery Module is great for general questions, or seeking recommendations and opinions.
If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.
This quickstart is licensed under the Apache License, version 2.0.