1 Introduction
Developers can use the cloud to develop small program to develop micro-letters, games, without having to set up the server, you can use cloud capabilities.
Cloud development to provide complete for developers of native cloud support and micro-channel service support, weakening the back-end maintenance concept and operation, without the need to build a server, API using the platform provided by the core business development, we can achieve rapid on-line and iteration, and this capability , with the cloud service developers already use compatible with each other, they are not mutually exclusive.
Cloud Development provides several basic skills support:
ability | effect | Explanation |
---|---|---|
Cloud function | You do not need self-built server | Code running in the cloud, natural micro-channel proprietary authentication protocol, developers only need to write their business logic code |
database | You do not need self-built database | A tip operating either applet, can be read in the cloud database function JSON |
storage | You do not need self storage and CDN | In the small front-end program directly upload / download files cloud, cloud development in Visual Management Console |
Clouds call | Native integrated micro-channel service | The ability to cloud-free authentication function using a small program based on open interfaces, including server calls, the ability to get open data |
2, open cloud development
You can create default quotas for the two environments, each environment isolated from each other, each environment contains a separate database instance, storage space, cloud configuration functions and other resources. Each environment has a unique ID to identify environmental, initially created the environment automatically becomes the default environment.
Note: AppID for the first time after the opening of a cloud environment, the need to wait about 10 minutes before normal use cloud API, during which the official back-office services are preparing services, such as trying to call the cloud API will be reported in the applet
cloud init error:{ errMsg: "invalid scope" }
errors
Recommendation: the process of developing a two environments for testing, one for the production of (official)