https://github.com/appgalleryconnect/agc-cloudstorage-server-nodejs-codelab
Cloud Storage is scalable and maintenance-free. It allows you to store high volumes of data such as images, audios, and videos generated by your users securely and economically with direct device access.
https://github.com/appgalleryconnect/agc-cloudstorage-server-nodejs-codelab
cloud-storage javascript server
Last synced: 7 months ago
JSON representation
Cloud Storage is scalable and maintenance-free. It allows you to store high volumes of data such as images, audios, and videos generated by your users securely and economically with direct device access.
- Host: GitHub
- URL: https://github.com/appgalleryconnect/agc-cloudstorage-server-nodejs-codelab
- Owner: AppGalleryConnect
- License: apache-2.0
- Created: 2020-11-17T09:47:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-04T09:49:23.000Z (over 5 years ago)
- Last Synced: 2024-12-28T14:42:23.518Z (over 1 year ago)
- Topics: cloud-storage, javascript, server
- Language: JavaScript
- Homepage: https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudstorage-introduction
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NearbyMessageDemo-AGCCloudStorageAndroidSDK
## Contents
* [Introduction](#introduction)
* [Supported Environments](#supported-environments)
* [Procedure](#procedure)
## Introduction
This demo demonstrates an example of using the SDK to store pictures, videos, audio, or other user-generated files. For details about the SDK, please refer to https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Guides/agc-get-started.
Getting Started
For more development details, please refer to the following link:
Development Guide: https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Guides/agc-get-started
API References: https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-References/cloudstroage
## Procedure
1. Activate cloud storage service: The cloud storage service is not activated by default. You need to manually activate the cloud storage service in AGC.
2. New storage instance: After opening the cloud storage service, AGC will automatically create a default storage instance. If you want to store application system data and user data separately, you can create a new storage instance yourself.
3. Integrated SDK: If you need to use cloud storage-related functions in the application client, you must integrate the cloud storage client SDK.
4. Initialize the cloud storage: Before the application client uses the cloud storage, you need to initialize the cloud storage and specify the storage instance used by the client.
5. File management: The application client can call the API of the cloud storage SDK to perform operations such as uploading files, downloading files, deleting files, and modifying file metadata.
## Demo Testing
1. Download an API client authentication credential and modify the Path parameter.
2. Fill 'bucketName' parameter with storage instance name. You can obtain the storage instance name from the storage instance box on the **Project settings > Build > Cloud Storage** page of AppGallery Connect.
3. Uncomment related methods in the demo to call them.
4. Run the following command in the project directory to test the demo.
```
node cloudstorage.js
```
## Supported Environments
Node.js 10.0.0 or later version is recommended.