About the relationship between Alibaba Cloud and mangoDB, and the explanation and precautions of uni-app based on Alibaba Cloud's packaging of H5 and app

Table of contents

Known as the world's leading Alibaba Cloud

The relationship between Alibaba Cloud database and mongoDB

what is mongoDB    

 Significance of the strategic partnership between Alibaba Cloud and mongoDB

what is uni-app

advantage

Local cloud function upload

About H5 packaging, packaging and publishing, and configuration of domain names

The first step is to enter the manifest.json file to configure the package path, icon and other properties

The second part, enter the publishing interface

About the packaging configuration of the app

The first step, we still first come to the manifest.json page

Step 2. Click Release to select Native App-Cloud Packaging


 

Known as the world's leading Alibaba Cloud

 Founded in 2009, Alibaba Cloud is the world's leading cloud computing and artificial intelligence technology company . It is committed to providing safe and reliable computing and data processing capabilities in the form of online public services , making computing and artificial intelligence an inclusive technology . Alibaba Cloud serves leading enterprises in many fields such as manufacturing, finance, government affairs , transportation, medical care , telecommunications , and energy, including China Unicom , 12306 , Sinopec , PetroChina , Philips , Huada Gene and other large enterprise customers, as well as Weibo , Zhihu and other large enterprises. , Hammer Technology and other star Internet companies. Alibaba Cloud has maintained a good operating record in challenging application scenarios such as Tmall Double 11 Global Carnival and 12306 Spring Festival ticket purchases.

Alibaba Cloud deploys high-efficiency and energy-saving green data centers         around the world , and uses clean computing to provide a steady stream of energy for the new world of Internet of Everything. The service regions include China (North China, East China, South China, Hong Kong), Singapore, and the United States (United States). East, America and West), Europe, Middle East, Australia, Japan.

        In 2014, Alibaba Cloud helped users defend against the largest DDoS attack in the history of the global Internet, with a peak traffic of 453.8Gb per second  . In the Sort Benchmark 2016 sorting competition CloudSort project, Alibaba Cloud broke the AWS record of 4.51$/TB with a sorting cost of 1.44$/TB   . At Sort Benchmark 2015, Alibaba Cloud used its self-developed distributed computing platform ODPS to sort 100TB of data in 377 seconds, breaking the Apache Spark world record of 1406 seconds.

        In the early morning of March 3, 2019, Alibaba Cloud failed in the middle of the night. Alibaba Cloud officially replied that IO HANG occurred on ECS servers and other instances in Part C of Availability Zone C in North China 2.lasted about three hours,Gradually recovered after emergency investigation. On June 11, 2019, Alibaba Cloud was included in the " 2019 Forbes China Most Innovative Companies List ".

The relationship between Alibaba Cloud database and mongoDB

what is mongoDB    

  MongoDB is a database based on distributed file storage [1] written in C++  . Written in C++ language. It aims to provide scalable high-performance data storage solutions for WEB applications.

        MongoDB is a product between relational databases and non-relational databases. It is the most feature-rich and most like relational databases among non-relational databases. The data structure it supports is very loose and is a JSON -like bson format, so it can store more complex data types. The biggest feature of Mongo is that the query language it supports is very powerful. Its syntax is somewhat similar to the object-oriented query language. It can almost realize most functions similar to single-table query in relational databases, and it also supports indexing of data .

 Significance of the strategic partnership between Alibaba Cloud and mongoDB

In terms of product research and development, the technical teams of both parties communicated regularly to jointly output more product features for MongoDB on Alibaba Cloud. For example, in MongoDB 4.4 version, Hidden Index is a major feature jointly built by Alibaba Cloud and MongoDB. The two parties will work together to build first-class cloud database product capabilities for global customers.

        In terms of customer support, MongoDB has specially set up a CPM (Cloud Partner Manager) team in China, and has launched special cooperation with Alibaba Cloud in customer support, and has provided training empowerment or professional support services for dozens of customers such as Gigabit and Guangzhou Meal Road. , so that enterprise users can focus more on business innovation.

        In terms of ecological construction, several members of the Alibaba Cloud database team play core roles in the MongoDB Chinese community, participate in the translation of official technical documents, share technical blogs, organize and participate in MongoDB technical salons and annual summits in various city stations, and share Alibaba Cloud's MongoDB technology innovations and best practices. practice issues.

        It is reported that in 2020 and 2021, Alibaba Cloud will be awarded the "Best ISV Partner of the Year" and "The Best MongoDB Partner of the Year" by MongoDB respectively. This is a high recognition of Alibaba Cloud's contribution to MongoDB in the Asia-Pacific region.

        Alibaba Cloud has independently developed cloud-native database products such as PolarDB, AnalyticDB, and Lindorm, and has successfully entered the Gartner Global Database Leaders Quadrant for two consecutive years as the only technology manufacturer in China. At present, it has served leading enterprises in government affairs, retail, finance, telecommunications, manufacturing, logistics and other fields.

what is uni-app

 uni-appis one using Vue.js

(opens new window) A framework for developing all front-end applications, developers write a set of codes that can be published to iOS, Android, Web (responsive), and various small programs (WeChat/Alipay/Baidu/Toutiao/Feishu/QQ / Kuaishou/Dingding/Taobao), Kuaishou and other platforms.

DCloudThe company has 9 million developers, millions of applications, 1.2 billion mobile monthly active users, thousands of uni-app plug-ins, and 70+ WeChat/QQ groups. The official built-in uni-app of the Ali applet tool ( see

 (opens new window) ), Tencent Classroom officially recorded training courses for uni-app ( see

(opens new window) ), developers can choose with confidence.

uni-appIn hand, do not worry about anything. Even if it is not cross-end, it uni-appis a better applet development framework ( see

 (opens new window) ), a better App cross-platform framework, and a more convenient H5 development framework. No matter what kind of project the leader arranges, you can deliver it quickly, without changing the development thinking or changing the development habits.

advantage

1. Cross-platform release, better running experience
2. Consistent with the components and API of the applet;
3. Compatible with weex native rendering, which increases the development efficiency, but due to the large number of weex pits, it is recommended to use local rendering optimization;
4. Universal front-end technology stack, lower learning cost 5. Support vue syntax, WeChat
applet API 6.
mpvue embedded And JS SDK 10. Compatible with mpvue components and projects (embedded mpvue open source framework) 11. App support and native mixed coding 12. Rich plug-ins, DCloud will release plug-ins to the market





Local cloud function upload

The premise is that all cloud functions and functions to be implemented by the code are written!

First of all, the cloud functions we use are only the locally configured cloud functions displayed on the page. When we finish writing, we will upload our local cloud functions to our uniCloud platform (as shown below:)

 After uploading, he will prompt that the upload was successful!

And display all the cloud functions that have been uploaded (as shown below:)

About H5 packaging, packaging and publishing, and configuration of domain names

The first step is to enter the manifest.json file to configure the package path, icon and other properties

Coming to the page of the manifest.json file, we find the web configuration (as shown below:)

 The following figure is the title of the configuration page

 The following figure shows the configuration routing mode (if you don't understand the back-end code, like me, for a rookie who prefers the front-end, we can choose hash by default)

 The following figure is the configuration base path:

 Do pay attention, don't forget, open your https protocol (as shown below:)

 The second part, enter the publishing interface

Note that if we are in the selected state of the general file, we cannot pack it, so we have to select a random sub-file in the "Website-pc Web or Mobile H5..." option in the click release!

 Website domain name, if you don't have it, you can leave it here temporarily!

After the release, the console will display the location where it automatically packaged for us. Generally, it will be stored in "your cloud function\unpackage\dist"!

After the release, we click (open the uniCloudWeb console...) in the image below to enter our cloud platform!

Then, after we enter our cloud platform, we look at the navigation bar on the left:

There is a front-end web page management, click on it, you can first access this service, when you click on activate, you will see that we can open web hosting for free, this web page is charged when it is hosted in Tencent Cloud, but it is free in Alibaba Cloud, this is The reason why I stopped developing WeChat mini-programs based on Tencent Cloud for a while (because, ahem, recently, hahaha, I'm tight~), just kidding!

After we open it, we can upload our released folder ("your cloud function\unpackage\dist") to it!

 The effect after I uploaded the picture above!

 This is our click like configuration, this button, we will find that there is a default domain name:

 Of course, at this point, the results we want cannot be achieved! ! !

We also need to configure our auto-generated default domain name in the cross-domain configuration:

 Then we enter our default domain name in the address bar of the browser, followed by the path of our directory: (as shown below)

 In this way, we can implement a page mode that others can also access!

About the packaging configuration of the app

The first step, we still first come to the manifest.json page

click

App icon configuration, click to automatically generate all icons and replace

 

Step 2. Click Release to select Native App-Cloud Packaging

 After the packaging is completed, it will automatically generate the apk file for us

Note: The generated apk file supports Android system! ! !

The automatically generated path is generally as shown in the following figure:

If you want to get a download address of your own app file, we can put the generated apk file into the cloud storage we created, and it will automatically generate a download address for us (as shown below)

Guess you like

Origin blog.csdn.net/lbcyllqj/article/details/127388245